Using external font file in a  pdf document

Hello,
I try to create programmatically a pdf file which whould use an external ttf file. Right now my soft generates something like this:
3 0 obj
<</Type /Pages/Count 1/Kids[5 0 R ]/Resources<</Font<</F1 7 0 R>>>>>>
endobj
7 0 obj
<</Type /Font/Subtype /Type0/Encoding /Identity-H/BaseFont /TimesNewRomanPSMT/DescendantFonts [8 0 R]>>
endobj
8 0 obj
<</Type /Font/Subtype /CIDFontType2/BaseFont /TimesNewRomanPSMT/CIDToGIDMap /Identity/FontDescriptor 9 0 R/DW 1000/W [1[722]2[610]3[443]4[389]5[277]0[777]]/CIDSystemInfo <</Ordering (Identity)/Registry (Adobe)/Supplement 0>>>>
endobj
9 0 obj
<</Type /FontDescriptor/FontName /TimesNewRomanPSMT/StemV 80/Descent -216/Ascent 891/CapHeight 662/Flags 32/ItalicAngle 0/FontBBox [-568 -306 2000 1007]/FontFile2 10 0 R>>
endobj
10 0 obj
<</Length 13 0 R/Length1 13 0 R/Filter /FlateDecode /F times.ttf>>stream
endstream
endobj
13 0 obj
836380
endobj
The times.ttf is in the same folder as a pdf. The document opens without error though the rendered text is completely different from that it suppose to be. I didn't find a good exemple in PDF spec and probably I intrepret it in a wrong way. I would be very thankful for any clue what is wrong in my code or a sample how could it be done correctly.
thanks in advance

From the snippet you posted, it appears that you didn't properly write out the value of the /F key in the stream. 
However, that's just one of the reasons this won't work as you are expecting.  Even after you fix that, you should know that Adobe Acrobat & Reader have their support for external streams turned OFF by default (for security reasons) and that other viewers don't even support it at all.
Is there a reason you don't wish to embed the font?  Or use standard referencing?

Similar Messages

  • Embed fonts late in existing PDF-document

    Hello,
    I already searched for hours to find a way to embed fonts in existing pdf-documents.
    I tryed it in these ways:
         1. Creating a PS-file out of the PDF-file and the creating a PDF-file out of the PS-file --> it doesn't work, because the PS-file can not be created
         2. editing the PDF-file via the adobe sdk wich is installed whith the AdobeAcrobatStandard9 --> I don't find a way to set the fonts to embedded
    I now that it is possible to embed the fonts while open the pdf-document manually and edit it with the TouchUp-Tool. But this way we can not handle, because we need to edit thousands of documents. So we need a solution wich works as a CommandLine-Tool or so.
    I hope anyone have an idea and can help me
    Thanks a lot
    Clemens

    Acrobat 9 Standard does not have the capability.  It is, however,
    available as part of Acrobat 9 Professional.  That solution can also be
    used as part of a Batch Process to address your volume needs.
    There are no command line options available.
    Also, don't forget that Acrobat can NOT be used on a server...

  • I am getting this response when I am trying to open a file: Before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser."  What do I do?

    I am getting this response when I am trying to open a file: Before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser.”  What do I do?  I have opened this up in the past without a problem. 

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • How to embed fonts in an existing pdf document

    PDF Documents I am creating and emailing to my clients are showing up missing bargraps and text. I suspect embedding is not working. Is it possible or even needed to embed fonts in an existing pdf document? Or, is that done during pdf creation? -MikeT

    You'd want embedded fonts with your PDFs so as to assure fidelity of your content.
    If my local machine does not have the font used in the PDF what I view may be / can be something "off" from what you mastered.
    Perhaps squares instead of language characters.
    Distiller job options such as High Quality Print or Press Quality embed fonts (Standard does not).
    For a PDF that does not have embedded fonts a Preflight Fixup can be used to embed fonts (even one for hidden text from Searchable Image or Searchable Image (Exact) OCR output).
    Need Acrobat 9 Pro or Pro Extended.
    The fonts must be on the local machine and "known" to the OS.
    The fonts must have no license restriction(s) that preclude embedding.
    Be well...

  • Convert virtually any CAD file into a PDF document .

    Can Acrobat X Pro Convert virtually any CAD file into a PDF document using templates?
    Earlier Acrobat 9 Pro Extended used to be ?

    In the latest version of Acrobat the grammer was added to allow embedding a swf file. Unfortunately the Designer (the tools for getting the swf in there) lags behind and will be there in a future release. So if you really want this you must do it by hand and it will only work in Acrobat/Reader 10.
    Here is a blog entry that describes how to do it:
    http://blogs.adobe.com/formfeed/2010/12/flash-in-xfa-sample-column-chart.html
    Paul

  • When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    When printing in Excel It is always want to use the acrobat X pro trial, which the trial is expired. I do not want to use acrobat X pro trial anymore. How can I reset it and use simple acrobat to print my PDF document?

    Hi screen name,
    Adobe PDF printer gets installed when you install Acrobat 10 Pro.
    To use this printer you need to purchase Acrobat. Once the trial period is over you cannot use the printer to create pdf files.
    An alternative way for you is to utilize Microsoft's own inbuilt pdf engine.
    You can simply open the file and select 'Save as' and in the type list select 'pdf'
    Please refer : http://office.microsoft.com/en-in/excel-help/save-as-pdf-HA010354239.aspx
    Regards,
    Rave

  • How do I use a font variation in a pages document. I no longer have the "viewer" -glyph option in special characters pane only new mbPro with Lion. I know the variation is available because I can see it in the font book. so now what I just want to be

    How do I use a font variation in a pages document? or other app for that matter? I no longer have the "viewer" - glyph option in the special characters pane (under edit  in toolbar). I know the varaition ia available because I can see it in my font book. I depended on that alot so I need to find a way to still use character and embellishments. I don't want to have to go back to my od computer (from2007) Please Help!

    I really don't understand.
    The menu item is available :
    Maybe, you didn't activate the tool :
    Yvan KOENIG (VALLAURIS, France) mardi 2 août 2011 23:10:17
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Embed the specific barcode font directly into the PDF document

    Anybody has any info about it ?
    embed the specific barcode font directly into the PDF document
    Oracle9i Reports Technical FAQ JUL-02 indicated that:
    "Oracle9i Reports also provides the functionality of PDF font embedding to
    allow you to embed the specific barcode font directly into the PDF document so
    the client does not have to have the barcode-font installed in order to view
    the document correctly."

    See to following posting:
    Re: Passing complex XML to session EJB with automatic WSIF mapping
    Regards
    Sripathy

  • VS2013 Page Inspector does not use external script files

    If I use an external javascript file, the Page Inspector does not appear to run the javascript (as the styles created during runtime are not visible). If I run the web page outside of VS (e.g. IE) then it works.
    <script type="text/javascript" src="border.js"></script>
    However, if I use an internal script, the styles are created as expected.
    <script type="text/javascript">$("div").css("border", "2px solid red").add("p").css("background", "yellow");</script>
    Is the Page Inspector supposed to use external script files, and if not, are there plans to support it?

    Hi,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because Page Inspector feature is more related to ASP.NET Application/Technology, in order to resolve your issue better,
    I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/  for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What version of adobe acrobat do I need to combine mutilple pdf files into one PDF document?

    What version of adobe acrobat do I need to combine mutilple pdf files into one PDF document? I am wanting to know if Adobe Acrobat Standard XI can combine multiple PDFs for do I need to stick with Adobe Acrobat Professional XI?

    Acrobat Standard can combine PDF files.

  • Can I use Adobe ExportPDF to split a PDF document?

    Can I use Adobe ExportPDF to split a PDF document?

    Hi
    We don't have this functionality but I will forward your request to our product team
    You might want to try Acrobat XI, trial is available at http://www.adobe.com/cfusion/tdrc/index.cfm?product=acrobat_pro&loc=us
    Thanks
    -sarabjit

  • How does one copy a PDF file into another PDF document?

    I am trying to copy part of a PDF file into another PDF document. So far, the file will copy but will not paste into another PDF document. Any clues?

    You can't convert Photoshop to editiable InDesign (though there is a plugin from RecoSoft that claims to make editable ID files from PDF: http://www.recosoft.com/products/pdf2id/).
    About the best you can hope for is to leave pixel information in the Photoshop file (where it really belongs) and place that into an ID document, then set any type in ID.
    Peter

  • Highlight File Format and PDF Documents with Chinese and English characters

    I'm a developer working on an application that makes use of the Highlight File Format / external highlight server capabilities of Adobe Reader.
    The highlighting worked correctly until we started to introduce pdf documents that were scanned to recognize Chinese in addition to English.
    The xml file seems to have the correct values in it. For example, if the 10 characters to highlight are at position 41 on the first page. The "xml" file has the <loc pg=0 pos=41 len=10>.
    If the document is scanned for English only, it works fine. That is, the highlight starts at character 41. If the same document is scanned for Chinese and English, the highlight starts at character 22.
    Has anyone had a similar experience? Do you know a solution?

    Hi,
    I don't know about BIP and the specifics of your context, but here are some general answers for the XLIFF format:
    <?xml version = '1.0' encoding = 'utf-8'?>
    Can we change encoding to 'ISO-8859-1' as soon as we convert the file format ?If you also save the file to ISO-8859-1 as well yes. But you can do this only for languages supported by Latin-1. It makes sense to keep the files in UTF-8.
    A-2) he section <header><skl><internal-file> contains a huge string
    which seeem to be binary ... What is this ? can we delete it ?That's likely to be the skeleton file. The data used to rebuild the original format after translation.
    Most likely it should stay there.
    A-3) Can we have one XLF file with muliple <file> sections (one per language to translate to ) ?
    This can be very useful for us to manage one only translation file per report template.Yes but no: yves you can have several <file> elements in an XLIFF document, but no: they must be for the same language pair. XLIFF is designed to work with bi-lingual files, not multi-lingual files.
    A-4) the most important section for translation is included in the <trans-unit> tag .
    Each one has a distinct id like ""49e41f8f" ... Can we replace this by a more meaningfull value ?Those id attributes are used by the filter to merge back the data after translation. You should preserve them.
    A-5) the language format is like "en-US" (language code + territory code).
    Is it case sensitive ? No it is not case-sensitive (en-us == en-US). The values of xml:lang are not case sensitive (unlike other XML attribute values).
    en-US is just the recommended notation.
    The XLIFF specification are here:
    http://docs.oasis-open.org/xliff/xliff-core/xliff-core.html
    Hope this helps,
    -ys

  • Hi. I use ExportPDF. Does Adobe support pdf documents written in Arabic Language? Does it change the documents in arabic language into microsoft word??

    I have PDF documents written in Arabic. I would like to convert it into Microsoft Word. Unfortunately I am unable to do this. Please help me in my quiery. Does Adobe PDF converter support Arabic font??

    Hi Yousif04,
    If your document has fonts attached you can convert to Microsoft word that is quite possible. But if the fonts were used to create the file arent present in the system the Microsoft word may not be able to retain the layout of the document.
    There shouldn't be any problem for ExportPdf service to convert your document.
    To check fonts used for that PDF. Open PDF either in Reader or In Acrobat. Click on File go to Properties. Document Property windows will appear there is Fonts Tab. You will the fonts embedded for the document.
    Regards,
    Ajlan Huda.

  • Font changes in a pdf document

    A document was created in Word, converted to pdf and e-mailed to be signed and returned.  Upon receipt of the signed document, it was noticed that some of the fonts had changed throughout the document.  How can a font change on a pdf'd document?

    Sounds like the font information was not embedded in the file. A common issue. They will need to embed those fonts and send you a different PDF.

Maybe you are looking for