We tried using Aspose Pdf on the generated pdf from aspose words using the Document with below code. outByteArray is the byte[] generated from aspose words in pdf format.
InputStream stream = new ByteArrayInputStream(outByteArray);
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(stream);
pdfDocument.setEmbedStandardFonts(true);
for (Page pageCollection:pdfDocument.getPages())
{
if (pageCollection.getResources().getFonts() != null)
{
for (Font fonts:pageCollection.getResources().getFonts())
{
if (!fonts.isEmbedded())
{
fonts.setEmbedded(true);
}
}
}
for (XForm forms:pageCollection.getResources().getForms())
{
if (forms.getResources().getFonts() != null)
{
for (Font formFont:forms.getResources().getFonts())
{
if (!formFont.isEmbedded())
{
formFont.setEmbedded(true);
}
}
}
}
}
This is embedding the fonts, but unlike described in aspose documentation is not converting to type-1 IDocument (Aspose.PDF for Java (22.10) API Documentation)
@ramachandra1988 I have moved your question into Aspose.PDF forum. My colleagues will help you shortly.
@ramachandra1988
Could you please share some detail about your query along with sample input PDF? We will investigate the issue and provide you more information on it.
response.pdf (64.7 KB)
Hi I am attaching the original file and generated pdf. The PDF first goes through aspose words and then aspose pdf. We get the required font Arial, the embedded subset, but we are not able to achieve Type-1 font type. We need true type to be changed to type-1.W097643-04OCT22 - Copy.docx (45.6 KB)
@ramachandra1988
We have logged this problem in our issue tracking system as PDFJAVA-42198. You will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
Do you have an ETA on this?
@ramachandra1988
Currently, your issue is pending for analysis and is in the queue. Once our product team completes the analysis of your issue, we will then be able to provide you an estimate.
Hi Team, any update on this?
@ramachandra1988
Unfortunately, there is no update available on your issue at the moment. We will be sure to inform you once there is an update available on it.
Any ETA as to when the analysis will be completed?
@ramachandra1988
We try our best to deal with every customer request in a timely fashion, we unfortunately cannot guarantee a delivery date to every customer issue. Our developers work on issues on a first come, first served basis. We feel this is the fairest and most appropriate way to satisfy the needs of the majority of our customers.
You reported this issue in free support forum and it will be treated with normal priority. To speed up the progress of issue’s resolution, we suggest you please check our paid support policies from following link.
Paid Support Policies