Re: How to set PDF/A to an existing PDF

2022-02-04 Thread Tilman Hausherr
Am 05.02.2022 um 01:13 schrieb Tommy Wu: Would you send over the icc file that you were using? It is in the source code download, in the directory examples\src\main\resources\org\apache\pdfbox\resources\pdfa Tilman Tilman Hausherr 於 2022年2月3日週四 下午10:45寫道: I've also found out why the fi

Re: How to set PDF/A to an existing PDF

2022-02-04 Thread Tommy Wu
Would you send over the icc file that you were using? Tilman Hausherr 於 2022年2月3日週四 下午10:45寫道: > I've also found out why the file produced with the trunk wasn't OK, this > is because my pom.xml had used Apache FOP for some reason. > > Tilman > > Am 04.02.2022 um 04:37 schrieb Tilman Hausherr: >

Re: How to set PDF/A to an existing PDF

2022-02-03 Thread Tilman Hausherr
I've also found out why the file produced with the trunk wasn't OK, this is because my pom.xml had used Apache FOP for some reason. Tilman Am 04.02.2022 um 04:37 schrieb Tilman Hausherr: Am 04.02.2022 um 01:48 schrieb Tommy Wu: Sorry I am bit confused. Do you mean you have a version that is w

Re: How to set PDF/A to an existing PDF

2022-02-03 Thread Tilman Hausherr
Am 04.02.2022 um 01:48 schrieb Tommy Wu: Sorry I am bit confused. Do you mean you have a version that is working and can pass the validation? If so, would you please provide the link to the source file? I used the ordinary 2.0.25 version that you can download at https://pdfbox.apache.org/downl

Re: How to set PDF/A to an existing PDF

2022-02-03 Thread Tommy Wu
Sorry I am bit confused. Do you mean you have a version that is working and can pass the validation? If so, would you please provide the link to the source file? Tilman Hausherr 於 2022年2月3日週四 下午1:29寫道: > I must correct myself. The file created by 2.0 is fine on both services > that I mentioned.

Re: How to set PDF/A to an existing PDF

2022-02-03 Thread Tilman Hausherr
I must correct myself. The file created by 2.0 is fine on both services that I mentioned. The problem is only in the trunk, and only in my local version. I never heard about "PDFen". The two other services I mentioned are well known in the industry. (For me: 2.0 xmp: target/test-output/PDFA

Re: How to set PDF/A to an existing PDF

2022-02-03 Thread Tommy Wu
So how should we address this? Tilman Hausherr 於 2022年2月2日週三 下午11:42寫道: > OK, now we have a problem. I tried > https://www.pdf-online.com/osa/validate.aspx > > Validating file "PDFA.pdf" for conformance level pdfa-1b > > dc:title/*[0] :: Missing language qualifier. > > The document d

Re: How to set PDF/A to an existing PDF

2022-02-02 Thread Tilman Hausherr
OK, now we have a problem. I tried https://www.pdf-online.com/osa/validate.aspx Validating file "PDFA.pdf" for conformance level pdfa-1b dc:title/*[0] :: Missing language qualifier. The document does not conform to the requested standard. The document's meta data is either missing

Re: How to set PDF/A to an existing PDF

2022-02-02 Thread Tommy Wu
I was using your CreatePDFA java code to create a PDF/A document but the validator web site was saying it was not a true PDF/A Tilman Hausherr 於 2022年2月2日週三 下午2:15寫道: > That image was swallowed by the mailing list engine. I point you to my > comment in your SO question > > https://stackoverflow.

Re: How to set PDF/A to an existing PDF

2022-02-02 Thread Tilman Hausherr
That image was swallowed by the mailing list engine. I point you to my comment in your SO question https://stackoverflow.com/questions/70888090/set-pda-a-to-existing-pdf-using-pdfbox "Converting an existing PDF to PDF/A can be very difficult, it's more than just setting the metadata." If you

Re: How to set PDF/A to an existing PDF

2022-02-02 Thread Tommy Wu
Thanks Tilman I was able to run the example now However, when I tested in https://www.pdfen.com/pdf-a-validator, it said [image: image.png] Tilman Hausherr 於 2022年2月1日週二 下午11:04寫道: > Because you're not using the 2.0 CreatePDFA.java example. That one goes > like this: > > // add XMP

Re: How to set PDF/A to an existing PDF

2022-02-01 Thread Tilman Hausherr
Because you're not using the 2.0 CreatePDFA.java example. That one goes like this:     // add XMP metadata     XMPMetadata xmp = XMPMetadata.createXMPMetadata();     try     {     DublinCoreSchema dc = xmp.createAndAddDublinCoreSchema();  

Re: How to set PDF/A to an existing PDF

2022-02-01 Thread Andreas Lehmkuehler
Try the source from CreatePDFA.java http://svn.apache.org/viewvc/pdfbox/branches/2.0/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreatePDFA.java?revision=1824539&view=co Am 01.02.22 um 21:17 schrieb Tommy Wu: I still cannot get it to compile org.apache.pdfb

Re: How to set PDF/A to an existing PDF

2022-02-01 Thread Tommy Wu
I still cannot get it to compile org.apache.pdfbox pdfbox 2.0.25 org.apache.pdfbox xmpbox 2.0.24 org.apache.pdfbox fontbox 2.0.25 // je

Re: How to set PDF/A to an existing PDF

2022-02-01 Thread Tilman Hausherr
Use xmpbox, not jempbox. Tilman Am 01.02.2022 um 20:19 schrieb Tommy Wu: Here's the dependency I used org.apache.pdfbox pdfbox 2.0.25 org.apache.pdfbox jempbox 1.8.16 pdfboxTest\src\main\java\com\example\pdfboxtest\CreatePDFA.java:101:40 java: incompatible

Re: How to set PDF/A to an existing PDF

2022-02-01 Thread Tommy Wu
Here's the dependency I used org.apache.pdfbox pdfbox 2.0.25 org.apache.pdfbox jempbox 1.8.16 pdfboxTest\src\main\java\com\example\pdfboxtest\CreatePDFA.java:101:40 java: incompatible types: org.apache.jempbox.xmp.XMPMetadata cannot be converted to byte[] line 40 is

Re: How to set PDF/A to an existing PDF

2022-02-01 Thread Tilman Hausherr
Then please tell what errors you get, and what libraries you're using (hopefully pdfbox, fontbox and xmpbox). Tilman Am 01.02.2022 um 19:42 schrieb Tommy Wu: I can't even get it to compile Andreas Lehmkuehler 於 2022年2月1日週二 上午12:35寫道: Hi, Am 31.01.22 um 22:03 schrieb Tommy Wu: The followi

Re: How to set PDF/A to an existing PDF

2022-02-01 Thread Tommy Wu
I can't even get it to compile Andreas Lehmkuehler 於 2022年2月1日週二 上午12:35寫道: > Hi, > > Am 31.01.22 um 22:03 schrieb Tommy Wu: > > The following cookbook is not long working for the new version. Do you > have > > a way to do it now? > Which version are you referring to? > > What exactly doesn't wo

Re: How to set PDF/A to an existing PDF

2022-01-31 Thread sahy...@fileaffairs.de
There is a CreatePDFA.java example in the examples subprojekt for PDFBox 2.0 as well as the current trunk version. With kind regards Maruan Am Montag, dem 31.01.2022 um 16:03 -0500 schrieb Tommy Wu: > The following cookbook is not long working for the new version. Do > you have > a way to do it

Re: How to set PDF/A to an existing PDF

2022-01-31 Thread Andreas Lehmkuehler
Hi, Am 31.01.22 um 22:03 schrieb Tommy Wu: The following cookbook is not long working for the new version. Do you have a way to do it now? Which version are you referring to? What exactly doesn't work? Andreas Apache PDFBox | PDF/A Creation

How to set PDF/A to an existing PDF

2022-01-31 Thread Tommy Wu
The following cookbook is not long working for the new version. Do you have a way to do it now? Apache PDFBox | PDF/A Creation Thanks