Problem with Font Embedding with ExportAsFixedFormat

Discussion in 'Word VBA' started by Laura Villa, Apr 20, 2009.

  1. Laura Villa

    Laura Villa Guest


    I'm using word automation to create server-side PDF docs from .docx files.
    The word document uses a non-default font (TW Cen). The .pdf document created
    has a problem with font embedding: the TW Cen font is replaced with a
    similar, but different, font and the layout of the document is quite
    It happens even if I specify paramBitmapMissingFonts parameter = true.

    If I try to export the same file using the appropriate "Save as PDF" option
    in Word 2007 (on the same machine), it works.

    The code I use is the following:
    Word.WdExportFormat paramExportFormat = Word.WdExportFormat.wdExportFormatPDF;
    bool paramOpenAfterExport = false;
    Word.WdExportOptimizeFor paramExportOptimizeFor =
    Word.WdExportRange paramExportRange = Word.WdExportRange.wdExportAllDocument;
    int paramStartPage = 0;
    int paramEndPage = 0;
    Word.WdExportItem paramExportItem =
    bool paramIncludeDocProps = true;
    bool paramKeepIRM = true;
    Word.WdExportCreateBookmarks paramCreateBookmarks =
    bool paramDocStructureTags = true;
    bool paramBitmapMissingFonts = true;
    bool paramUseISO19005_1 = true;

    paramExportFormat, paramOpenAfterExport,
    paramExportOptimizeFor, paramExportRange, paramStartPage,
    paramEndPage, paramExportItem, paramIncludeDocProps,
    paramKeepIRM, paramCreateBookmarks, paramDocStructureTags,
    paramBitmapMissingFonts, paramUseISO19005_1,
    ref missing);
    Laura Villa, Apr 20, 2009
    1. Advertisements

  2. Laura Villa

    Taylor Guest

    Taylor, Dec 3, 2013
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.