Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Adds an ICC profile to the PDF file like AddOutputIntent but accepts a file as a container.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Container | The container with the ICC Profile as file content. |
Returns handle of the Rendering Intent object or error.
See also AddOutputIntentEx function in DynaPDF manual.
Check conformance and add required output intents:
#Check if this PDF conforms to PDF/A-1b 2005
Set Variable [$c; Value:MBS("DynaPDF.CheckConformance"; $pdf; "PDFA 1b 2005")]
If [$c = 1]
# A RGB ICC profile must be added to the document
Set Variable [$r; Value:MBS("DynaPDF.AddOutputIntentEx"; $pdf; ZUGFeRD Invoice::RGB ICC Profile)]
Else If [$c = 2]
# A CMYK ICC profile must be added to the document
Set Variable [$r; Value:MBS("DynaPDF.AddOutputIntentEx"; $pdf; ZUGFeRD Invoice::CMYK ICC Profile)]
Else If [$c = 3]
# A Gray, RGB, or CMYK ICC profile must be added to the document
Set Variable [$r; Value:MBS("DynaPDF.AddOutputIntentEx"; $pdf; ZUGFeRD Invoice::RGB ICC Profile)]
End If
Created 3th November 2014, last changed 16th August 2016
DynaPDF.AddOutputIntent - DynaPDF.AddValToChoiceField
Feedback: Report problem or ask question.