Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Jul 13, 2021 5:40 am

Hi,

i am trying to convert a pdf1.4 file to pdf/a-1b with Spire.PDF for Java. I use the class "com.spire.pdf.conversion.PdfStandardsConverter" with method ".toPdfA1B(outFile)".

On MS Windows it converts just fine. On a linux machine i get this error:

Code: Select all
class com.spire.pdf.packages.sprQHc: Key cannot be null
Parameter name: key
com.spire.ms.System.Collections.Hashtable.containsKey(lic:56)
com.spire.pdf.packages.sprzOa.spr  (Unknown Source)
com.spire.pdf.packages.sprzOa.spr (Unknown Source)
com.spire.pdf.packages.sprzOa.spr  (Unknown Source)
com.spire.pdf.packages.sprzOa.spr  (Unknown Source)
com.spire.pdf.packages.sprzOa.spr (Unknown Source)
com.spire.pdf.packages.sprIob.spr  (Unknown Source)
com.spire.pdf.packages.sprIob.spr  (Unknown Source)
com.spire.pdf.packages.sprIob.spr  (Unknown Source)
com.spire.pdf.packages.sprEob.spr  (Unknown Source)
com.spire.pdf.packages.sprhMb.spr  (Unknown Source)
com.spire.pdf.packages.sprhMb.spr (Unknown Source)
com.spire.pdf.packages.sprhMb.spr  (Unknown Source)
com.spire.pdf.conversion.PdfStandardsConverter.toPdfA1B(Unknown Source)


Any idea what the problem might be?

romanIT20one
 
Posts: 3
Joined: Thu Jul 08, 2021 12:58 pm

Tue Jul 13, 2021 7:15 am

Hello,

Thanks for your inquiry
I simulated a PDF v1.4 file, and converted it to PDF/A-1B with the latest Spire.PDF for Java Version:4.6.8 on Linux, but I did not reproduce your issue. If you are using an older version, please download the latest version and try it again.
If the issue persists, to help us investigate further, please provide your input file. You can upload your file here or send it to us ([email protected]) via email. Thanks in advance.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Tue Jul 13, 2021 7:54 am

Hello,

we are actually using the free version, Spire.Pdf-FE_4.4.1. Should this work the same as 4.6.8 or is there a difference as the versioning does suggest?

Kind regards
Roman

romanIT20one
 
Posts: 3
Joined: Thu Jul 08, 2021 12:58 pm

Tue Jul 13, 2021 8:09 am

Hi, i tried it again with the trial version of SPIRE.PDF for Java 4.6.8 - almost exactly the same error:

Code: Select all
class com.spire.pdf.packages.sprtic: Key cannot be null
Parameter name: key
com.spire.ms.System.Collections.Hashtable.containsKey(Hashtable.java:203)
com.spire.pdf.packages.sprKpa.spr (Unknown Source)
com.spire.pdf.packages.sprKpa.spr (Unknown Source)
com.spire.pdf.packages.sprKpa.spr  (Unknown Source)
com.spire.pdf.packages.sprKpa.spr  (Unknown Source)
com.spire.pdf.packages.sprKpa.spr  (Unknown Source)
com.spire.pdf.packages.sprpMb.spr  (Unknown Source)
com.spire.pdf.packages.sprpMb.spr  (Unknown Source)
com.spire.pdf.packages.sprpMb.spr  (Unknown Source)
com.spire.pdf.packages.sprHMb.spr  (Unknown Source)
com.spire.pdf.packages.sprxnb.spr  (Unknown Source)
com.spire.pdf.packages.sprxnb.spr (Unknown Source)
com.spire.pdf.packages.sprxnb.spr  (Unknown Source)
com.spire.pdf.conversion.PdfStandardsConverter.toPdfA1B(Unknown Source)


Sent the PDF to your support email address.

Kind regards
Roman

romanIT20one
 
Posts: 3
Joined: Thu Jul 08, 2021 12:58 pm

Tue Jul 13, 2021 10:24 am

Hello Roman,

Thanks for providing your file via email.
I tested your file in Linux environment but still did not reproduce your issue. I have sent you my executable .jar file via email, please run it directly on your side to see if the issue occurs.
Besides, kindly note that when using our Spire.PDF to operate PDF files and convert PDF to PDF/A-1B, you need to install all fonts used in the PDF file. Please make sure you have installed the corresponding fonts in your Linux.
If the issue persists, please tell us your OS information (e.g. Centos7, 64bit) for further investigation.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF

cron