Quantcast
Viewing all articles
Browse latest Browse all 3131

Save DOC to PDF converts Arial to ArialMT

Dear Aspose-Team,

we have a font problem converting a DOC to a PDF. We're using this function with formatPDFA=false:

<code>
    private synchronized boolean createPDFByAspose(Document doc, String target, boolean formatPDFA)
    {
        try
        {
            PdfSaveOptions options = new PdfSaveOptions();
            if (formatPDFA)
                options.setCompliance(PdfCompliance.PDF_A_1_B);

            doc.save(target, options);

            return true;
        }
        catch (Exception ex)
        {
            logger.logError(ex,
                    getName() + ": createPDFByAspose() failed! " + doc.getOriginalFileName() + "->"
                            + target + " (" + formatPDFA + ")");
            return false;
        }
    }
</code>

When you open the PDF, mark some text and take a look to the font properties you see, that there is used ArialMT instead of Arial (Font_Property_in_PDF.png). The conversion was done on an Windows Server 2003 and Aspose.Words 13.9 for Java.
When saving the document in Word 2010 as pdf, the font properties says, that the pdf uses Arial, like the original word document.

What do I have to do, that Aspose.Words uses Arial in the pdf and not ArialMT?

Kind reagrds,
Frank

Viewing all articles
Browse latest Browse all 3131

Trending Articles