ek1975 wrote:
> Thanks 1T3XT
> I have attached the code and the input PDF/A-1b file.

> http://www.nabble.com/file/p23851060/code.txt code.txt 
> http://www.nabble.com/file/p23851060/PDFA_1B_test.pdf PDFA_1B_test.pdf 

The XMP Metadata in your PDF is wrong.

Please read the XMP Specification:
http://www.adobe.com/devnet/xmp/pdfs/xmp_specification.pdf#100

XMP Metadata inside a PDF must look like this:

1152 0 obj
<< /Type /Metadata /Subtype /XML /Length 1706 >>
stream
<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<!-- The serialized RDF goes here. It has been removed for brevity. -->
<?xpacket end='w'?>
endstream
endobj

The XMP Metadata inside your PDF looks like this:

1152 0 obj
<< /Type /Metadata /Subtype /XML /Length 1706 >>
stream
<!-- The serialized RDF goes here. It has been removed for brevity. -->
endstream
endobj

The xpacket PIs are missing!

As far as I know these xpacket procession instructions are required! I 
could adapt iText to make it more fool proof and to anticipate XMP 
streams without these PIs, but that's going to take time. It's better 
for you to fix the original PDF.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to