frxPDFExport

Kim GreveKim Greve Albertslund, Denmark
edited 7:24PM in FastReport 4.0
I'm getting reports saying that reports in .PDF format can't be opened or text is missing, when the reports are opened om MAC, LINUX, And Android

I have run one of the reports through http://.pdf-tools.com pdf validator

The validator is reporting the following issues.

Validating file "Tom_??rsbogKupon.pdf" for conformance level pdfa-2a
The comment, classifying the file as containing 8-bit binary data, is missing.
The key Metadata is required but missing.
The key MarkInfo is required but missing.
The separator before 'endstream' must be an EOL.
The value of the key FontFamily must not be of type name.
A device-specific color space (DeviceRGB) without an appropriate output intent is used.
The value of the key Interpolate is true but must be false.
The key CIDToGIDMap is required but missing.
The width for character 57 in font 'Arial,Italic' does not match.
The document does not conform to the requested standard.
The file format (header, trailer, objects, xref, streams) is corrupted.
The document doesn't conform to the PDF reference (missing required entries, wrong value types, etc.).
The document contains device-specific color spaces.
The document contains illegal rendering hints (unknown intents, interpolation, transfer and halftone functions).
The document contains fonts without embedded font programs or encoding information (CMAPs).
The document's meta data is either missing or inconsistent or corrupt.
The document doesn't provide appropriate logical structure information.
Done.


Anybody who know a solution for this problem.

Comments

  • edited September 2012
    Don't validate against PDF-A. FastReport still doesn't support that.

    Anyways, "normal" PDF should be portable (Adobe Acrobat can produce normal PDF that display flawlessly in every platform.) You can test this by using the embedded viewer in Chrome and Firefox, or opening it in an iPad, for example.

    But PDF Export in Fast Reports is buggy. However, there are at least three ways to overcome this problem:
    - Embed all your fonts (your PDF files will be HUGE but they will open fine in most viewers)
    - Don't export but print to an external PDF printer ( PDFCreator is great.) I'm using this approach and the PDF generated are beautiful and weight about 40Kb for a single page (I'm printing invoices.)
    - Use the TCanvas provided by Synapse and write your own logic to print to it (haven't tested this yet.) See this StackOverflow anwer.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.