CDS pluginCDS plugintypeInstalls into a CAP project and extends the runtime. CAP loads it through cds.requires or the plugin hook.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →

@cap-js/print

A CDS plugin that prints a document held in a CAP entity, through SAP Print service and a @PDF.Printable annotation.

A CAP service that holds a document as a LargeBinary has no way of getting it onto one of the customer's local printers. Annotating an entity @PDF.Printable adds a print action taking a queue name and a number of copies, generates the handler behind it, and adds PrintServiceQueues and PrintServiceFiles entities so the queue and the file appear as value helps in the UI. The attribute to be printed must already carry @Core.ContentDisposition; producing the document is no part of this. The queues and the link to the printers are SAP Print service's, and using the plugin requires a subscription to it. Run locally without one and the service is mocked, with the job written to the console. For files generated at runtime, or a file type other than PDF, cds.connect.to("PrintService") invokes the same print action without the annotation.

Facts

Latestv0.2.1ReleasedLast pushLicenceApache-2.0

Where it sits

Lives in
Provides
Document outputCAPDocument outputcapabilityProducing a document a person receives — a printed form, a generated PDF, a filled template — and getting it to a printer or a queue rather than returning it as a payload.
Flavors
Node.jsfrom its runtime
Requires
@sap/cds≥ 9@sap/cdsartifactThe peer range, as published.SAP Print serviceSAP Print serviceartifactReaching the customer's printers: the plugin hands the document to a queue of the service, and a local run mocks the service and writes the job to the console instead.

Who is behind it

SAP Cloud Application Programming ModelSAP Cloud Application Programming ModelOrganisationMaintains this
In the atlas: maintains 34
@cap-js
maintainerChristian GeorgiPersonContributes to this
In the atlas: maintains 1, contributes to 53
@chgeo
Guilherme DellagustinPersonContributes to this
In the atlas: contributes to 27
@dellagustin-sap
Benny MeiPersonContributes to this
In the atlas: contributes to 1
@laniakea2006
Lisa Julia NebelPersonContributes to this
In the atlas: contributes to 15
@lisajulia
Marten SchiwekPersonContributes to this
In the atlas: contributes to 16
@schiwekM
Simon EngelPersonContributes to this
In the atlas: contributes to 14, wrote 4
@SirSimon04
6 contributors

Before choosing this

Conditions

LicenceSAP Developer License Agreement 3.2 CAP§ 1, 2, 3A cds-plugin is used with SAP CAP materials, or an artifact is explicitly identified as a CAP plugin or application.
  • § 1 License. Productive customer applications are limited to SAP BTP or another SAP-licensed platform, and mass extraction to a non-SAP product is restricted except where solely required for SAP interoperability.
  • § 2 Intellectual Property. The agreement retains SAP's rights in the covered materials and limits making APIs, tools or software available to third parties, while preserving ownership of customer applications subject to SAP's underlying rights.
  • § 3 Artificial Intelligence Training. The agreement prohibits use of the covered materials and customer applications for training artificial-intelligence models or systems.
SAP Developer License Agreement 3.2 CAP →

What it declares

Every artifact

Type
CDS plugin
Origin
By SAP
Runtime
Node.js

As a CDS plugin

Declared for
>= 9
Multitenancy
safe
Distributed through
does not say

Connections3

@cap-js/print connections@cap-js/printPROVIDES→ provides1provides stated Adds a `print` action, its handler and queue and file value helps to an entity annotated `@PDF.Printable`, and hands the selected `LargeBinary` to a print queue of SAP Print service. cap-js/print — README, About this project: https://raw.githubusercontent.com/cap-js/print/74cb8f7c82f478fa6e8794c51f1a9f9e75421c68/README.md cap-js/print — README, Annotations in CDS model: https://raw.githubusercontent.com/cap-js/print/74cb8f7c82f478fa6e8794c51f1a9f9e75421c68/README.md cap-js/print — README, Annotations in CDS model: https://raw.githubusercontent.com/cap-js/print/74cb8f7c82f478fa6e8794c51f1a9f9e75421c68/README.md cap-js/print — README, Model Requirements: https://raw.githubusercontent.com/cap-js/print/74cb8f7c82f478fa6e8794c51f1a9f9e75421c68/README.mdDocument outputNEEDS→ connects to1connects to stated The document to print, its file name, the queue name and the number of copies go to the service; the available print queues come back to fill the value help. cap-js/print — README, About this project: https://raw.githubusercontent.com/cap-js/print/74cb8f7c82f478fa6e8794c51f1a9f9e75421c68/README.md cap-js/print — README, Manual Usage: https://raw.githubusercontent.com/cap-js/print/74cb8f7c82f478fa6e8794c51f1a9f9e75421c68/README.md cap-js/print — README, Annotations in CDS model: https://raw.githubusercontent.com/cap-js/print/74cb8f7c82f478fa6e8794c51f1a9f9e75421c68/README.mdSAP Print service→ needs1needs declared Reaching the customer's printers: the plugin hands the document to a queue of the service, and a local run mocks the service and writes the job to the console instead. cap-js/print — README, Requirements and Setup: https://raw.githubusercontent.com/cap-js/print/74cb8f7c82f478fa6e8794c51f1a9f9e75421c68/README.md cap-js/print — package.json, cds.requires.print: https://raw.githubusercontent.com/cap-js/print/74cb8f7c82f478fa6e8794c51f1a9f9e75421c68/package.jsonSAP Print service

Install

npm add @cap-js/print

Derived from the package name. No recipe recorded; the README has the configuration.

Where it sits in your app

Download
Your CAP applicationYour SAP BTP subaccountcap-js/print — README, About this project, checked 2026-09-22: “The `@cap-js/print` package is a [CDS plugin](https://cap.cloud.sap/docs/node.js/cds-plugins#cds-plugin-packages) that provides print service features through integration with the [SAP Print Service](https://api.sap.com/api/PRINTAPI/overview).”outbound@cap-js/print, module@cap-js/printSAP Print service, service instanceSAP Print service
SAPnot SAP's, or the project's ownstated in the document

README

quoted from cap-js/print under Apache-2.0, read
cap-js/print/README.mdOn GitHub

Welcome to @cap-js/print

REUSE status

About this project

The @cap-js/print package is a CDS plugin that provides print service features through integration with the SAP Print Service.

Table of Contents

Requirements and Setup

Using this plugin requires a valid subscription of the SAP Print Service.

Usage

To use this plugin to print documents, there are two main steps:

  1. Ensure your model meets the requirements
  2. Annotate your CDS model with @PDF.Printable
Model Requirements
  • The attribute(s) you want to print are of type LargeBinary
  • Those attributes have the annotation @Core.ContentDisposition: fileName, where fileName is the attribute that specifies the file name or a hardcoded string with the file name
Annotations in CDS model

To use the print plugin, annotate your entity with @PDF.Printable:

@PDF.Printable
entity Books as projection on my.Books;

This annotation does the following things in the background:

  • Adds an action print to the annotated entity with the following parameters:
    • Queue: Name of the print queue to use.
    • Copies: Number of copies to print.
    • File: Only added if the entity has multiple LargeBinary attributes. Allows selecting which file should be printed. Ensure that the LargeBinary properties are annotated with @Common.Label.
  • This action is added to the UI and a handler is generated to process the print request.
  • An entity PrintServiceQueues is added to the service to provide available print queues in a value help.
  • An entity PrintServiceFiles is added to the service to provide available files in a value help (only if multiple LargeBinary attributes exist).

Manual Usage

You can also use the print service to print documents manually, i.e., without the @PDF.Printable annotations and generated actions and handlers.

Use cases for a manual approach could be:

  • You want to print documents that are not part of your CDS model, i.e., files generated at runtime.
  • Your model does not meet the requirements for the automatic approach.
  • You want to print a file type other than PDF.

For this, you can use the cds.connect.to API of CAP to connect to the print service and invoke the print action manually.

const printService = cds.connect.to("PrintService");

await printService.send("print", {
  qname: "Printer_Queue_Name",
  numberOfCopies: 1,
  docsToPrint: [
    {
      fileName: "file_name.pdf",
      content: "<base64-encoded-pdf-content>",
      isMainDocument: true,
    },
  ],
});

const queues = await printService.get("/Queues");

It is possible that for LargeBinaries retrieved from the database, the content is provided as a stream. In this case, the stream needs to be converted to base64 before passing it to the print service. For example, see the sample application in test/bookshop/

Local Development

When running the application locally, the print service is mocked. This mock implementation prints the print job details to the console instead of sending them to the actual print service. It also provides a number of sample print queues for selection.

Hybrid Testing

You can also run the application locally with a binding to the cloud print service with CAP profiles. For more information, see Hybrid Testing. You need an instance of the SAP Print Service.

Local

As the hybrid profile of the plugin uses SAP HANA Cloud to execute integration tests in CI, a profile local is added that can be used to execute the application locally with a binding to the cloud print service.

# Once as setup
cd test/bookshop
cds bind -2 <print-service-instance-name> -4 local
# Run the application (from the root)
npm run watch-sample:local
CI

For CI, the hybrid integration tests are automatically run against a SAP Print Service instance and a SAP HANA Cloud instance created for testing purposes.

Support, Feedback, Contributing

This project is open to feature requests/suggestions, bug reports, etc. via GitHub issues. Contributions and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.

Security / Disclosure

If you find a bug that may be a security problem, please follow the instructions in our security policy on how to report it. Please do not create GitHub issues for security-related doubts or problems.

Code of Conduct

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.

Licensing

Copyright 2025 SAP SE or an SAP affiliate company and print contributors. Please see our LICENSE for copyright and license information. Detailed information, including third-party components and their licensing/copyright information, is available via the REUSE tool.

Apache-2.0, read

History

Latest

v0.2.1

Features 1

Notes
Added
  • Translations for UI labels and messages
  1. v0.2.0

    Features 2, Fixes 3

    Notes
    Added
    • Multitenancy support
    • Support for @Core.ContentDisposition.Filename to specify filename
    Fixed
    • Draft enabled entities can be print enabled
    • Entities with composite keys can be print enabled
    • File upload during printing is now formatted correctly
  2. v0.1.0

    Features 1

    Notes
    Added
    • Initial release that provides out-of-the-box integration with the SAP Print Service.
0downloads per week, npm
Weekly downloads for @cap-js/print26 complete calendar weeks from 2026-04-27 to 2026-10-25; the latest total is 0.27 Apr – 3 May: 124 May – 10 May: 1811 May – 17 May: 6218 May – 24 May: 1125 May – 31 May: 71 Jun – 7 Jun: 218 Jun – 14 Jun: 715 Jun – 21 Jun: 922 Jun – 28 Jun: 229 Jun – 5 Jul: 266 Jul – 12 Jul: 513 Jul – 19 Jul: 420 Jul – 26 Jul: 927 Jul – 2 Aug: 13 Aug – 9 Aug: 1610 Aug – 16 Aug: 917 Aug – 23 Aug: 224 Aug – 30 Aug: 1131 Aug – 6 Sept: 57 Sept – 13 Sept: 514 Sept – 20 Sept: 4021 Sept – 27 Sept: 228 Sept – 4 Oct: 55 Oct – 11 Oct: 412 Oct – 18 Oct: 719 Oct – 25 Oct: 0
Document output
  1. abap2xlsxLibrary that reads and generates Excel spreadsheets from ABAPfrom ABAP
  2. zcl_docxABAP class filling a tagged Word .docx template with datafrom ABAP
  3. zcl_pdfStandalone ABAP class drawing PDFs without Adobe Document Serverfrom ABAP
  4. XTTABAP template engine for Excel, Word, HTML and PDFfrom ABAP
  5. SAP Forms Service by AdobeAdobe Document Services on BTP for print and interactive PDFsfrom BTP/BAIP
  6. SAP Print servicePrint queues between cloud applications and local printersfrom BTP/BAIP
  7. HandlebarsABAPSingle-file Handlebars templating for ABAP 7.40 SP02 and upfrom ABAP
  8. open-abap-pdfStandalone PDF generator written in ABAPfrom ABAP
  9. @salvatorela/cap-plugin-adobe-formsCAP plugin wrapping the SAP Forms service by Adobe on BTPfrom CAP
  10. SAP Spool PDFSubmits an ABAP report to the spool and converts the output to PDFfrom ABAP

Details

Sources5
GitHub APIdiscovered here, cap-jschecked
npm registrydiscovered herechecked
npm registry, @cap-js/printversion, releases, installschecked
github.com/git+https://github.com/cap-js/print.gittree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
runtimesnode
multitenancysafe
declared for>= 9
latestv0.2.1
first release
releases and cadence4, ~21d median
discovered viaGitHub API · cap-js, npm registry
first seen in the atlas
ecosystem and domaincap, integration-and-messaging
Contributors6
History in the atlas7
  1. A CDS plugin that prints a document held in a CAP entity, through [SAP Print service](artifact:btp-print) and a `@PDF.Printable` annotation.
  2. A CAP service that holds a document as a `LargeBinary` has no way of getting it onto one of the customer's local printers.
  3. The README states the subscription requirement plainly and package.json binds a vcap service labelled print, but neither edge existed, so the service the plugin cannot print without was invisible from its page. SAP Print service entered the graph on 2026-09-15, after this entry was written.
  4. runtimes: node, cds_range: >= 9, multitenancy: safe
  5. capability:document-output, with what_it_does and sources
  6. 0.2.0, 0.2.1
  7. First seen.
For your agent