Hi Tilal,
Hi Carlo,
Thanks for using our API’s.
I have tested the scenario and I am able to reproduce the same problem where converting 4-fil.pdf to PDF/A_1b compliance, the resultant file is not correct. For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-38791. We will investigate this issue in detail and will keep you updated on the status of a correction.
We apologize for your inconvenience.
Hi Carlo,
- PDFNEWNET-38792 - Registro Croce Rep 5941-4095.pdf
- PDFNEWNET-38793 - RR immobiliare rep63-52.pdf
Thank you for the prompt response, Nayyer.
Hi Carlo,
Hi Carlo,
Besides including complete font, you can also include the subset of font. Please try using the following code snippet.
//Open the document
Document doc = new Document("c:/pdftest/LineColorIssue.pdf");
//Iterate through all the pages
foreach (Page page in doc.Pages)
{
if (page.Resources.Fonts != null)
{
foreach (Aspose.Pdf.Text.Font pageFont in page.Resources.Fonts)
{
//Check if font is already embedded
if (!pageFont.IsSubset)
{
pageFont.IsSubset = true;
}
}
}
//Check for the Form objects
foreach (XForm form in page.Resources.Forms)
{
if (form.Resources.Fonts != null)
{
foreach (Aspose.Pdf.Text.Font formFont in form.Resources.Fonts)
{
//Check if the font is embedded
if (!formFont.IsSubset)
{
formFont.IsSubset = true;
}
}
}
}
}
//Save the document
doc.Save("c:/pdftest/CL_ExtractoCCValor_Subset-outut.pdf");
Thank you, Nayyer, I completely mismatched the property method.
Hi Carlo,
Hi Carlo,
the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-38840.
However when performing same operation over 1_soppressa.pdf, I have observed that text formatting is lost in resultant file when using IsSubset property. I have separately logged it as PDFNEWNET-38841 in our issue tracking system.
We will investigate this issue in details and will keep you updated on the status of a correction. <span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif”;mso-fareast-font-family:
“Times New Roman”;mso-ansi-language:EN-US;mso-fareast-language:EN-US;
mso-bidi-language:AR-SA”>We apologize for your inconvenience.