Bug 692742

Summary: When creating PDF/A the XMP meta data generated is incorrect
Product: Ghostscript Reporter: William Fausser <William_Fausser>
Component: PDF WriterAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: P4    
Version: 9.04   
Hardware: PC   
OS: All   
Customer: Word Size: ---
Attachments: error from preflight
input pdf
output PDF/A
PDFA ps file
meta data

Description William Fausser 2011-12-14 16:11:14 UTC
Created attachment 8218 [details]
error from preflight

Using the command:

/home/fausser/ghostscript-9.04/bin/gs -sDEVICE=pdfwrite  -q -dNOPAUSE  -dBATCH  -dPDFA -dUseCIEColor -dPDFACompatibilityPolicy=2 -sDSCEncoding=PDFDocEncoding   -sProcessColorModel=DeviceCMYK -sOutputFile=/home/fausser/ngrsgaoPDFA.pdf /home/fausser/PDFA_def.ps /home/fausser/pdfmark /home/fausser/ngrsgao-3.pdf

created ngrsgaoPDFA.pdf with will error under Adobe Acrobat 10.x preflight
Predefined XMP property i PDF/A standard matches definition: is not true
Comment 1 William Fausser 2011-12-14 16:12:35 UTC
Created attachment 8219 [details]
input pdf
Comment 2 William Fausser 2011-12-14 16:15:09 UTC
Created attachment 8220 [details]
output PDF/A
Comment 3 William Fausser 2011-12-14 16:15:48 UTC
Created attachment 8221 [details]
PDFA ps file
Comment 4 William Fausser 2011-12-14 16:16:27 UTC
Created attachment 8222 [details]
meta data
Comment 5 Ken Sharp 2011-12-14 17:11:53 UTC
This looks like a duplicate of Bug#692422, which was fixed in commit:
f369ae5a30143cdfc27df96de9b1b5bab1c72c6f

Please try the current code, if this does not fix the problem, then please reopen.

*** This bug has been marked as a duplicate of bug 692422 ***
Comment 6 William Fausser 2011-12-14 18:20:25 UTC
I downloaded gdevpdfe.c from http://git.ghostscript.com/?p=ghostpdl.git;a=blame;f=gs/base/gdevpdfe.c;hb=f369ae5a30143cdfc27df96de9b1b5bab1c72c6f and put in
my ghoscript-9.04/base.

cd ghostscript-9.04
make clean
make

reran the job:
 /home/fausser/ghostscript-9.04/bin/gs -sDEVICE=pdfwrite  -q -dNOPAUSE  -dBATCH  -dPDFA -dUseCIEColor -dPDFACompatibilityPolicy=2 -sDSCEncoding=PDFDocEncoding   -sProcessColorModel=DeviceCMYK -sOutputFile=/home/fausser/ngrsgao_PDFA.pdf /home/fausser/PDFA_def.ps /home/fausser/pdfmark /home/fausser/ngrsgao-3.pdf

The result is the same error mentioned above.

Obviously....I did something wrong...whoops
Comment 7 William Fausser 2011-12-14 19:39:11 UTC
The change works with Adobe Acrobat 9 but NOT Adobe Acrobat 10.x.  Above
still applies.......
Comment 8 William Fausser 2011-12-15 12:50:27 UTC
Hi,

This is a recap of sorts...

I applied the patch to base/gdevpdfe.c compiled and used the command:
/home/fausser/ghostscript-9.04/bin/gs -sDEVICE=pdfwrite  -q -dNOPAUSE  -dBATCH  -dPDFA -dUseCIEColor -dPDFACompatibilityPolicy=2 -sDSCEncoding=PDFDocEncoding   -sProcessColorModel=DeviceCMYK -sOutputFile=/home/fausser/ngrsgao_PDFA.pdf /home/fausser/PDFA_def.ps /home/fausser/pdfmark /home/fausser/ngrsgao-3.pdf

ngrsgao_PDFA.pdf verifies under Adobe Acrobat 9.x but does NOT under Adobe 10.x
giving the error:


XMP property is defined but not used in accordance with the definition.

I do not think this is a duplicate of issue 692422 since the patch on gdevpdfe.c
just has no effect.

I made sure that the make clean, make took...so I'm correct in my compile.

There is something else missing from the code concerning XMP that has changed
between Adobe Acrobat 9.x and 10.x
Comment 9 Ken Sharp 2011-12-17 10:34:53 UTC

*** This bug has been marked as a duplicate of bug 692748 ***