You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@ CDS plugin for SAP Print service (package `@cap-js/print`) is a CDS plugin that
8
8
9
9
## Table of Contents
10
10
11
-
12
11
## Requirements and Setup
13
12
14
13
Using this plugin requires a valid subscription of the [SAP Print Service](https://help.sap.com/docs/SCP_PRINT_SERVICE).
@@ -20,7 +19,7 @@ To use this plugin to print documents, there are two main steps:
20
19
1. Ensure your model meets the requirements
21
20
2. Annotate your CDS model with `@PDF.Printable`
22
21
23
-
### Model Requirements
22
+
### Model Requirements
24
23
25
24
- The attribute(s) you want to print are of type `LargeBinary`
26
25
- 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
@@ -49,6 +48,7 @@ This annotation does the following things in the background:
49
48
You can also use the print service to print documents manually, i.e., without the `@PDF.Printable` annotations and generated actions and handlers.
50
49
51
50
Use cases for a manual approach could be:
51
+
52
52
- You want to print documents that are not part of your CDS model, i.e., files generated at runtime
53
53
- Your model does not meet the requirements for the automatic approach
0 commit comments