We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Pdf to Pdf/A Conversion Error: Input contains invalid character

Hi!
With the attached input.pdf an error is procuded after conversion to PDF/A-1B.

input.pdf (61.1 KB)

com.aspose.pdf.Document document = new com.aspose.pdf.Document(file.getAbsolutePath());
document.convert(System.out, PdfFormat.PDF_A_1B, ConvertErrorAction.Delete);
document.save(outputFilename);

document.save thows an Exception:

class com.aspose.pdf.internal.ms.System.lh: Input contains invalid character at 1 : �
com.aspose.pdf.internal.l71j.l46v.lk(Unknown Source)
com.aspose.pdf.internal.l71j.l46v.lj(Unknown Source)
com.aspose.pdf.internal.l71j.l46v.l0p(Unknown Source)
com.aspose.pdf.internal.l71j.l46v.lj(Unknown Source)
com.aspose.pdf.internal.l71j.l46v.lb(Unknown Source)
com.aspose.pdf.internal.l71j.l5l.lb(Unknown Source)
com.aspose.pdf.internal.l71j.l45n.lf(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lI(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lf(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lI(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lf(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lI(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lf(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lI(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lf(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lI(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lf(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lI(Unknown Source)
com.aspose.pdf.internal.l71j.l28l.lf(Unknown Source)
com.aspose.pdf.internal.l71j.l26l.lI(Unknown Source)
com.aspose.pdf.internal.l71j.l26l.lf(Unknown Source)
com.aspose.pdf.internal.l9p.lI.lI(Unknown Source)
com.aspose.pdf.internal.l9p.lb.lI(Unknown Source)
com.aspose.pdf.internal.l8f.l0p.lI(Unknown Source)
com.aspose.pdf.internal.l8f.l0t.lI(Unknown Source)
com.aspose.pdf.internal.l0k.l0if.lI(Unknown Source)
com.aspose.pdf.ADocument.lf(Unknown Source)
com.aspose.pdf.ADocument.lf(Unknown Source)
com.aspose.pdf.ADocument.save(Unknown Source)
com.aspose.pdf.Document.save(Unknown Source)

@dvtdaten

We were able to replicate the issue in our environment using Aspose.PDF for .NET 19.11 and logged it as PDFNET-47364 in our issue tracking system. We will surely check this issue and work to get it resolved. We will let you know as soon as we have some updates regarding its fix. Please spare us little time.

We are sorry for the inconvenience.

Hello, are there any news for this issue?

To inform you, one solution for this problem is removing the document author (which is “U 8”) before converting the document to Pdf/A:

document.getInfo().setAuthor("");

Kind regards

@dvtdaten

Regretfully there are no updates yet regarding issue resolution. However, we will surely consider your findings while investigating the issue and let you know as soon as it is resolved. Please spare us some time.

We are sorry for the inconvenience.