Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Converts a PDF file to a specific PDF standard according to the parameter Type.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
Type | PDF Version to check. This can be "PDFA 1b 2005", "PDFA 2b", "PDFA 2u", "PDFA 3b", "PDFA 3u" or "Normalize". Version 6.0 of DynaPDF supports also: ZUGFeRD Basic, ZUGFeRD Comfort and ZUGFeRD Extended. Added ZugFerd 2.x constants in v10.5: ZUGFeRD 2.0: * ZUGFeRD2 Minimum * ZUGFeRD2 Basic * ZUGFeRD2 Basic WL * ZUGFeRD2 Comfort * ZUGFeRD2 Extended Factur-X / ZUGFeRD 2.1: * FacturX Minimum * FacturX Basic * FacturX Basic WL * FacturX Comfort * FacturX Extended Added "PDFA/4", "PDFA/4e" and "PDFA/4f" in v13.5. The e version includes 3D contents in rich media annotations and the f version includes file attach annotations. |
"PDFA 1b 2005" | |
Options | Various options. If no options are specified, we use default. Can be specified as number or a texts. |
"DeletePostscript¶DeleteOPIComments" | Optional |
Returns result or error.
Default | Default options. |
EmbedSubsets | Embed Subsets |
DeleteTransferFuncs | Delete Transfer Functions |
DeleteMultiMediaContents | Delete MultiMedia content |
DeleteActionsAndScripts | Delete Actions and Scripts |
DeleteInvRenderingIntent | Delete Invisible Rendering Intent |
FlattenFormFields | Flatten form fields |
ReplaceV4ICCProfiles | Replace V4 ICC Profiles |
DeleteEmbeddedFiles | Delete embedded files |
DeleteOPIComments | Delete OPI comments. |
DeleteSignatures | Delete signatures. |
DeletePostscript | Delete Postscript XObjects. Rarely used and such Postscript fragments are meaningful on a Postscript device only. It is usually safe to delete such objects. |
DeleteAlternateImages | Alternate images are seldom used and prohibited in PDF/A. |
ReComprJPEG2000Images | Recompression results usually in larger images. It is often better to keep such files as is. |
ResolveOverprint | PDF/A 2 and 3. Set the overprint mode to 0 if overprint mode = 1 and if overprinting for fill or stroke is true and if an ICCBased CMYK color space is used. Note that DeviceCMYK is treated as ICCBased color space due to implicit color conversion rules. |
DeleteAppEvents | PDF/A 2 and 3. Application events are prohibited in PDF/A. The view state will be applied. |
ApplyExportState | Meaningful only if coDeleteAppEvents is set. Apply the export state. |
ApplyPrintState | Meaningful only if coDeleteAppEvents is set. Apply the print state. |
DeleteReplies | Delete annotation replies. If absent, replies will be converted to regular text annotations. |
ReplCCITTFaxWithFlate | Replace CCITT Fax compression with Flate. |
DeleteHalftones | Delete halftone screens. |
FlattenLayers | Flatten layers if any. |
DeletePresentation | Presentations are prohibited in PDF/A 2 and 3. |
NoFontEmbedding | If this flag is set no valid PDF/A file will be produced! |
FlushPages | Write converted pages directly into the output file to reduce the memory usage. |
AllowDeviceSpaces | If set, device color spaces will not be replaced with ICC based color spaces. This flag is meaningful for normalization only. |
MakeLayerVisible | PDF/A 2 and 3 prohibit invisible layers. Layers can also be flattened if this is no option. |
CheckImages | Images will be decompressed to identify damages. |
DeleteDamagedImages | Meaningful only if CheckImages is set. |
RepairDamagedImages | Meaningful only if coCheckImages is set. If set, try to recompress a damaged image. The new image is maybe incomplete but error free. This flag can be combined with coDeleteDamagedImages to delete the image if recompression fails. |
AllowDeviceSpaces | If set, device color spaces will not be replaced with ICC based color spaces. This flag is meaningful for normalization only. |
ResetAnnotAppearance | If set, appearance streams of annotations are rebuild before executing CheckConformance(). |
DefaultNormalize | Common default flags for different PDF/A versions. |
DefaultPDFA1 | The ability to flatten layers was added after coDefault was defined. |
DefaultPDFA2 | Presentations are prohibited in PDF/A 2 and PDF/A 3. |
DefaultPDFA3 | Embedded files are allowed in PDF/A 3. |
DefaultPDFA4 | Embedded files are allowed in PDF/A 4. |
See also CheckConformance function in DynaPDF manual.
Check conformance for ZUGFeRD Extended:
MBS( "DynaPDF.CheckConformance"; $pdf; "ZUGFeRD Extended"; "Default" )
Check conformance only:
MBS("DynaPDF.CheckConformance"; $pdf; "PDFA 1b 2005"; 0)
Check conformance for ZUGFeRD with Pro license:
MBS("DynaPDF.CheckConformance"; $pdf; "ZUGFeRD Basic")
// using default options
Check conformance for ZUGFeRD with Lite license:
MBS("DynaPDF.CheckConformance"; $pdf; "ZUGFeRD Basic"; 0)
// no corrections
This function checks for a license.
Created 2nd November 2014, last changed 18th October 2023