PDF/A-1b compatibility

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

LosBubos
User
Posts: 2
Joined: Tue May 31, 2005 3:59 pm

PDF/A-1b compatibility

Post by LosBubos »

Hello,

I have a problem to convert a document to pdf/a. The option is set for
the printer driver PXCComLib.CPXCPrinter via COM API (version 4.0.154.0).
Both of the following definitions don't work: "PDFA-1b" and "PDF/A-1b".

I have checked both versions on two different validators "http://www.soliddocuments.com" and on "PDF Validator vom PDF Tools", but I get error messages:

With the option: ....Option("General.Specification") = "PDFA-1b"
PDF Validator / PDF Tools:
The error message: "The separator before 'endtstream' must be an EOL."

The error message: "File structure Stream dictionary length value and detected stream length mismatch"

---------------------------------------------------------------------------------------------------------
With the option ....Option("General.Specification") = "PDF/A-1b"

PDF Validator / PDF Tools:
The error message: "The key Metadata is required but missing."


The error message:
"File structure Stream dictionary length value and detected stream length mismatch"
"Catalog The key <<OutputIntents>> is required for PDF/A-1b"
"Catalog The key <<Metadata>> is required for PDF/A-1b"

Any help is appreciated....thanks in advance.
Last edited by Anonymous on Mon Jan 12, 2009 3:32 pm, edited 1 time in total.
Reason: Links removed
User avatar
John - Tracker Supp
Site Admin
Posts: 5225
Joined: Tue Jun 29, 2004 10:34 am

Re: PDF/A-1b compatibility

Post by John - Tracker Supp »

Hi,

can you please supply a small and simple example (zipped) - direct to Ivan@tracker-software.com with a link back to this forum topic in the messsage body

with any necessary instructions/info.

thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3603
Joined: Thu Jul 08, 2004 10:36 pm

Re: PDF/A-1b compatibility

Post by Ivan - Tracker Software »

Valid value for Option("General.Specification") is "PDFA-1b", not "PDF/A-1b".

Can you send me document created with this option?
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
LosBubos
User
Posts: 2
Joined: Tue May 31, 2005 3:59 pm

Re: PDF/A-1b compatibility

Post by LosBubos »

Ivan - Tracker Software wrote:Valid value for Option("General.Specification") is "PDFA-1b", not "PDF/A-1b".

Can you send me document created with this option?
Hi Ivan,
I just wanted to make sure that you received my email, I did send you the asked for example on 01/13.

LosBubos
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3603
Joined: Thu Jul 08, 2004 10:36 pm

Re: PDF/A-1b compatibility

Post by Ivan - Tracker Software »

Yes, I had. And see strange things: Acrobat 8 says file conforms PDF/A-1b specification. Acrobat 9 - says not, and says that problems are with new lines/line feeds into streams.

But, when I take a look at PDF/A-1b ISO specification there is:
3.6 end-of-line marker
EOL marker
one or two character sequence marking the end of a line of text, consisting of a CARRIAGE RETURN character (0Dh) or a LINE FEED character (0Ah) or a CARRIAGE RETURN followed immediately by a LINE FEED.

....

6.1.7 Stream objects
The stream keyword shall be followed either by a CARRIAGE RETURN (0Dh) and LINE FEED (0Ah) character sequence or by a single LINE FEED character. The endstream keyword shall be preceded by an EOL marker.
The value of the Length key specified in the stream dictionary shall match the number of bytes in the file following the LINE FEED character after the stream keyword and preceding the EOL marker before the endstream keyword.
NOTE 1 These requirements remove potential ambiguity regarding the ending of stream content.
So, by ISO specification (hope it is common for all) our PDFs conform to PDF/A-1b (we are using 0Ah after stream, and 0Ah before endstream).
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
peterandree
User
Posts: 1
Joined: Mon Feb 02, 2009 7:53 am

Re: PDF/A-1b compatibility

Post by peterandree »

Ivan - Tracker Software wrote:Yes, I had. And see strange things: Acrobat 8 says file conforms PDF/A-1b specification. Acrobat 9 - says not, and says that problems are with new lines/line feeds into streams.

But, when I take a look at PDF/A-1b ISO specification there is:
3.6 end-of-line marker
EOL marker
one or two character sequence marking the end of a line of text, consisting of a CARRIAGE RETURN character (0Dh) or a LINE FEED character (0Ah) or a CARRIAGE RETURN followed immediately by a LINE FEED.

....

6.1.7 Stream objects
The stream keyword shall be followed either by a CARRIAGE RETURN (0Dh) and LINE FEED (0Ah) character sequence or by a single LINE FEED character. The endstream keyword shall be preceded by an EOL marker.
The value of the Length key specified in the stream dictionary shall match the number of bytes in the file following the LINE FEED character after the stream keyword and preceding the EOL marker before the endstream keyword.
NOTE 1 These requirements remove potential ambiguity regarding the ending of stream content.
So, by ISO specification (hope it is common for all) our PDFs conform to PDF/A-1b (we are using 0Ah after stream, and 0Ah before endstream).
Hello Ivan,

this is peterandree, workmate of LosBubos.

We created documents with the most recent update of your software. It's still not working. There just is no EOL marker before endstream which you say should be the case. Could you please verify that everything is working as it should and recommend a possible solution to the issue?
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3603
Joined: Thu Jul 08, 2004 10:36 pm

Re: PDF/A-1b compatibility

Post by Ivan - Tracker Software »

Can you send me PDF without EOL marker before endstream (please use Ivan@tracker-software.com)? Please note, EOL marker is: 0Dh, 0Ah or sequence 0Dh,0Ah.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3603
Joined: Thu Jul 08, 2004 10:36 pm

Re: PDF/A-1b compatibility

Post by Ivan - Tracker Software »

Thanks, fixed. Fix will be available in days into build 156.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.