Bug 692742 - When creating PDF/A the XMP meta data generated is incorrect
Summary: When creating PDF/A the XMP meta data generated is incorrect
Status: RESOLVED DUPLICATE of bug 692748
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: 9.04
Hardware: PC All
: P4 major
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 16:11 UTC by William Fausser
Modified: 2011-12-17 10:34 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
error from preflight (65.66 KB, image/jpeg)
2011-12-14 16:11 UTC, William Fausser
Details
input pdf (175.73 KB, application/pdf)
2011-12-14 16:12 UTC, William Fausser
Details
output PDF/A (398.72 KB, application/x-pdf)
2011-12-14 16:15 UTC, William Fausser
Details
PDFA ps file (1.47 KB, application/postscript)
2011-12-14 16:15 UTC, William Fausser
Details
meta data (217 bytes, application/octet-stream)
2011-12-14 16:16 UTC, William Fausser
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***