PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis property gets or sets the value indicating whether to produce a PDF/A compatible output file.
|
| VARIANT_BOOL ProducePDFA { get; set; } |
Value
VARIANT_TRUE if the document should be produced with a PDF/A compatible output file; VARIANT_FALSE otherwise
Remarks
Setting ProducePDFA to VARIANT_TRUE means that the output PDF file will be built compatible to the PDF/A standard. You should set this property before any text or graphics output.
PDF/A format means:
- Audio and video content are forbidden.
- Javascript and executable file launches are prohibited.
- All used fonts are embedded. This also applies to the so-called PostScript standard fonts such as Times or Helvetica.
- Color spaces are specified in a device-independent manner.
- Encryption is disallowed.
Note: Setting this property to VARIANT_TRUE will force the output file format version to be 1.4. See compatibility for more details.
Example
How to Produce a PDF/A Compatible Document
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.SetLicenseData('demo', 'demo');
PDF.ProducePDFA := true;
{ Here we create our document and fill its contents. }
PDF.SaveToFile('test.pdf', false);
{ Now the file created is PDF/A compatible. }
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->SetLicenseData("demo", "demo");
PDF->ProducePDFA = true;
// Here we create our document and fill its contents.
PDF->SaveToFile("test.pdf", false);
// Now the file created is PDF/A compatible.
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.SetLicenseData("demo", "demo");
PDF.ProducePDFA = true;
// Here we create our document and fill its contents.
PDF.SaveToFile("test.pdf", false);
// Now the file created is PDF/A compatible.
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.SetLicenseData "demo", "demo" PDF.ProducePDFA = True ' Here we create our document and fill its contents. PDF.SaveToFile "test.pdf", false ' Now the file created is PDF/A compatible.
See Also
Reference


