I have used Aspose.Word to create 1,000 documents, which are then converted to PDF and concatenated into a single PDF file for sending to our mailhouse for printing.
The problem is that while we are only using the standard fonts available within the Adobe range, for some reason there are fonts being embedded into the final PDF.
The mailhouse cannot print the file that we send them because of the embedded files.
Is there any way I can remove the embedded fonts from within the final PDF document.
Sorry to tell you this feature is not supported. We are studying how to remove objects from existing pdf but I am afraid we can support such feature in short time.
Hmmm… Thats not so good…
Taking another angle of attack, is there any way to create a PDF from a Word document and not embed any fonts???
If unicode is used we have to embed the font. Otherwise the pdf can’t be displayed well. If no unicode is used, by default Aspose.Pdf don’t embed fonts.
The problem I am now experiencing is as follows:
Because we
have created individual PDF’s, each PDF had its own copy of the fonts it needed
embedded. As we were then concatenated them all into a single PDF, the Embedded
Font information was being duplicated. So there were x number of copies of each
font being stored within the final PDF file (where x is the number of records in
the file).
Is there some setting or workaround I can use to stop the duplication of Embedded Fonts???
I am using the Concatenate method in PDFKit to splice together the separate PDFs into a single file.
I understand your problem but it is difficult to resolve. Can you please send some example Word document to me? I we check if it is possible to avoid embedding fonts.
I have checked your sample document.
1) There are unicode characters in the document (in xml IsUnicode="true"). If I remove the unicode set the font will not be embedded but the unicode characters are not displayed correctly.
2) Only font subset is embedded for the unicode characters. So I think there should not be the "font information being duplicated" problem.
3) You can try avoid concatenating pdf files. You can merge the Word document before converting to pdf.