Hello
I’m trying to convert and existing PDF into PDF/A3u. The first try I made was following this code:
[https://blog.aspose.com/2015/08/24/pdf-to-pdfa-3a-conversion-create-pdfa3-and-attach-xml-remove-or-manipulate-tables-in-existing-pdf-file-with-aspose.pdf-for-java-10.6.0/]
But when I open the PDF result, acrobat reader tells me that there is a problem. The alert message is “It can`t extract the embebed font Arial …”. In the log, I can see a few messages with error severity:
- The LZWDecode filter is prohibited
- Font ‘SansSerif’ is not embedded
- The trailer dictionary does not contain ‘ID’
- Metadata key does not exists
So, I tried to embed the fonts correctly into the document first, following this code:
Embedding Fonts in an existing PDF file
The process finished with no errors, but I cannot open the result document.
What am I doing wrong?
Thanks in advance.
I`m using Aspose.PDF for .NET v19.6
@redondo78
Thank you for contacting support.
Would you please share source and generated file because this issue is not reproduced the same with every file. We will then investigate further to help you out.
Hi Farhan
The zip bellow contains the input, output (out) and the log conversion.
14048710_filesv2.zip (1.1 MB)
This is the code I’m executing, in order to convert the input pdf into PDF/A3u
using (FileStream file = new FileStream(logConversion, FileMode.Create, System.IO.FileAccess.Write))
{
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(input);
doc.Convert(file, PdfFormat.PDF_A_3U, ConvertErrorAction.Delete);
doc.Save(output);
}
Many thanks.
@redondo78
Thank you for sharing requested data.
We have been able to reproduce the issue in our environment. A ticket with ID PDFNET-46642 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.
We are sorry for the inconvenience.