Embedding of fonts into PDF document

Hello people!
I need to create a PDF document that has text in different fonts(Arial Black, Courier New, Lucida Sans etc.) and languages(English, German, Russian etc.).
What is the best way to do this? How can I embed a font into a PDF document?
I am reading a PDF Reference documantation, but I have not found a good example of font embedding...
I would be thankful for an example or link to documentation or any other information that will help me to solve this problem.

>I have not found any free library for creating PDF files so I'm writing my own..
I would like to recommend that, rather than spending weeks or months
on getting fonts to embed (this is HARD) you look harder at the
available library. There are now dozens, and some are free, some are
even open source. Quality varies, of course.
http://www.planetpdf.com/ has a very big list of PDF tools, including
developer tools.
If you want to continue, realise that at points in this task you will
hit things which suddenly seem to make the job ten times harder than
before. Embedding fonts is one. Far Eastern fonts ten times harder
still.
> (The only library I found(for C++) was PDFLib, but it is not free)
Do a fair comparison of your months of coding time versus licensing
time.
>Adobe PDF Library is not free too(As I understand it)
Indeed not. From what we understand licensing is by negotation,
royalty based and never less than tens of thousands of dollars.
Frankly, too, it's not an ideal library for PDF creation.
>
>Yes, you are right! But almost every PDF doc is coded... How can I decode it to watch its contents?
Write a decoder. You are sure to need one as part of debugging your
own code at some point.
> Is there an example of font embedding in the documentation?
No, but it's just an extra FontFile, FontFile2 and/or FontFile3 key in
the FontDescriptor: not very interesting in PDF terms.
The key part is that you have to read and understand the font file
formats as well as the PDF format, because in most cases you have to
parse and may have to rewrite the font data. So if you want to embed
TrueType fonts, now is the time to read the TrueType font
specification (at least in outline, down to the level of the
individual tables: you can ignore the stuff about outlines and
rendering).
Aandi Inston

Similar Messages

  • Embedding Truetype fonts into PDF Document

    Hi all,
    I have a question for you :
    I have a class in VB6 to make my PDF documents,
    with this class i have the possibility to enter text of
    Type 1 and text of Truetype fonts in the PDF Document,
    by the specifications of the font:
    i.e.:
    to be able to enter text in Regular Times New Roman, I must to provide these specifications :
    an array with the widths of all the characters, precisely :
    Array(250, 333, 408, 500, 500, 833, 778, 180, 333, 333, 500, 564, 250, 333, 250, 278, 500, 500, 500, 500, 500, 500, 500, 500, 500, 500, 278, 278, 564, 564, 564, 444, 921, 722, 667, 667, 722, 611, 556, 722, 722, 333, 389, 722, 611, 889, 722, 722, 556, 722, 667, 556, 611, 722, 722, 944, 722, 722, 611, 333, 278, 333, 469, 500, _
                         333, 444, 500, 444, 500, 444, 333, 500, 500, 278, 278, 500, 278, 778, 500, 500, 500, 500, 333, 389, 278, 500, 500, 722, 500, 500, 444, 480, 200, 480, 541, 778, 500, 778, 333, 500, 444, 1000, 500, 500, 333, 1000, 556, 333, 889, 778, 611, 778, 778, 333, 333, 444, 444, 350, 500, 1000, 333, 980, 389, 333, 722, 778, 444, 722, _
                         250, 333, 500, 500, 500, 500, 200, 500, 333, 760, 276, 500, 564, 333, 760, 500, 400, 549, 300, 300, 333, 576, 453, 250, 333, 300, 310, 500, 750, 750, 750, 444, 722, 722, 722, 722, 722, 722, 889, 667, 611, 611, 611, 611, 333, 333, 333, 333, 722, 722, 722, 722, 722, 722, 722, 564, 722, 722, 722, 722, 722, 722, 556, 500, _
                         444, 444, 444, 444, 444, 444, 667, 444, 444, 444, 444, 444, 278, 278, 278, 278, 500, 500, 500, 500, 500, 500, 500, 549, 500, 500, 500, 500, 500, 500, 500, 500)
    And some parameters :
    /Flags 34
    /FontBBox [-250 -216 1200 1000]
    /MissingWidth 333
    /StemV 73
    /StemH 73
    /ItalicAngle 0
    /CapHeight 891
    /XHeight 446
    /Ascent 891
    /Descent -216
    /Leading 149
    /MaxWidth 1000
    /AvgWidth 401
    The question : Where I can find these specifications for other truetype fonts, like Tahoma, MS Sans Serif ecc..?
    thanks in advance for any replies!

    Thank you for replication,
    could you show me the name of API that I should use ?
    thanks in advance for any replies!

  • EMBEDDING POSTSCRIPT FONTS INTO PDFS

    Used Quark Xpress 3.31 on Windows 98/Millenium/2000, made ps file, distilled to PDF. Worked great. All fonts embedded in PDF. Files worked great for prepress. Can't update Quark because of maths program I use that won't work on later Quark versions and can’t get math program upgrade. Trying to update to Windows XP. With XP postscript fonts will not embed in PDFs via Quark 3.31/Acrobat Distiller 4. Fonts will only show in Courier on PDF, although using Word same fonts will distill and show in PDF preferences/fonts list – so fonts are working. Have tried Universal Document Converter 5.3 as straight PDF converter. Fonts show on PDF but not showing as fonts embedded in preferences/fonts in PDF. Trying Adobe Acrobat Pro 10 but does not seem to work either. I think it is an issue with Quark 3.31 and later Windows platforms. Any suggestions out there on problem/solution? I may have to be stuck in the middle ages with software. Thanks

    I may have to be stuck in the middle ages with software
    People have the best experience when their application software, their OS software and their hardware are moving forward together. But you've pretty much just stuck with what you have for the past 16 years.
    I'd guess that the problem is that QuarkXPress 3.31 (which came out in 1996, according to Wikipedia) is probably incompatible with Windows XP (which came out in 2001).
    Either you stick with what you have or you'll have to replace all your software. Assuming you want to stick with QuarkXPress, you'll have to find new math software which works with a later version of QuarkXPress. This will then require you to probably upgrade your hardware and update your Windows software. Since you waited so long, this will take some work.

  • How to embed font into PDF - Listener 2.0.2 FOP configuration

    I need to embed custom font into PDF report in order to print one of Slovenian characters: Č (C with caron) This character shows as # sign when I generate standard PDF report using Apex 4.2.2 and Listener 2.0.2. As far as I understand 14 native Adobe PDF fonts are based on Windows 1252 encoding. This encoding doesn't include mentioned Slovenian character.
    Oracle White paper http://www.oracle.com/technetwork/developer-tools/apex/learnmore/custom-pdf-reports-1953918.pdf says:
    "APEX Listener 2.0.2 supports only the Base-14 fonts. To configure additional fonts, see this document: Apache(tm) FOP: Fonts "
    I was able to embed my custom font into standard Apache FOP report server. Solution consist of saving two files my_font.ttf and my_font.xml to server and update of FOP userconfig.xml file (fonts part where path to saved 2 files have to be specified)
    How can I do this on Apex Listener 2.0.2 ? Where is located userconfig.xml file?
    Simon

    Hello Ivaylo Mutafchiev,
                                           There is no way we can control the fonts in the created PDF / while creating the PDF using the class cl_document_bcs in your PDF creation logic.
    You can try some other approach of creating PDF from the Smartforms OTF stream data .
    Try using the follosing FM for the PDF creation and sending email:
    CONVERT_OTF_2_PDF
    CONVERT_OTF_AND_MAIL
    SO_OBJECT_SEND
    CONVERT_OTF_AND_MAIL_NEW (Try this but this FM still uses  the class that you are using currently. But give it a try and see the results)
    Hope this answers your question.
    Thanks,
    Greetson

  • How do I hide the file names/path names of embedded images in a PDF document?

    I created a PDF document from a Word document, and the problem is that the PDF document shows the file names and path names for all of the embedded images in the PDF document. I don't want that information displayed. I don't want to send the PDF out to clients and have them read the names I've assigned to those images, plus it looks messy. And I've lost many of the original image files so they only exist in the Word document, thus I can't go back and rename them. I searched the internet for an answer but I couldn't find one anywhere.

    When you create a tagged (accessible) PDF file from Word, placed bitmap images will use their filename as the "ALT text" if you don't define something else for the text to say, because an image without any ALT text is a failure against the accessibility standards. You can't change that default action, so you should put your own meaningful text into the ALT field for each image - which is what you should be doing anyway if the PDF is standards-compliant.
    You can can set the text in Word, but it depends on your version as to where the dialogs are - Google for it - or you can change/delete it in Acrobat using the tags navigation pane on the left side of the window (right-click the sidebar if it's not visible). Drill down through the tags structure to find the "<Figure>" tag you want to change, right-click and choose Properties, then put something in the "Alternative text" field. This process isn't something you can easily automate, but if you don't need tags at all, you can save without tags (or print to PDF).

  • My MacBook has Leopard Printer has asked me to 'embed fonts' in pdf text. I have used Web but mostly out of date or Windows focused. Can you advise me how best to embed fonts on pdf documents created with TextEdit ?  Thank you.

    My MacBook has Leopard. A printer has asked me to 'embed fonts' in pdf text. I have looked csrefully on Web but mostly out of date or Windows related.
    Can you advise me how best to embed fonts on pdf documents created with TextEdit ?  Thank you.  PippinD

    Hi
    Level 2 posters and Above can report various posts.
    When they do so they have various options that they can attribute as the issue.
    I have reported your post.
    I found the one block of text very difficult to read.
    9:36 PM      Monday; January 28, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Embedding FLV Video Into PDF Files

    I have been testing out embedding FLV files into PDF's to simplify presentations (no need for Powerpoint, DVD player, DVD player software, etc..).  It is a bit slow when a big video file will load, but I think it is worth it for the simplified presentation method.
    My problem is this, whenever I embed an FLV file into a PDF, it seems to degrade the quality down a notch or two.  I am not concerned about file size since these will always be played locally from a hard drive or CD so I created the embedded FLV file to be high quality and very crisp (720 x 486, ~2200kbs bit rate).  However, no matter how good a file I embed, after it becomes embedded it always looks worse.  At this point, it has mainly been trial and error, but the original quality does not seem to matter as to how it will look in the PDF.
    Does Acrobat Pro re-encode the video no matter if it is FLV or not?  And is there anyway to change the settings so it does not alter the existing quality?
    Thank you.

    Are you inserting a screen capture FLV of the whole screen.  I use camtasia Studio to capture my desktop in video... and if the playback is NOT at the same size as the original...then it can look blurry.

  • Cant get the font on PDF document and alignment

    I cant get the font on PDF document and alignment eventhough I have margins to 0 still getting some space from the top and left side.
    I have added fonts to CF Admin and restarted too still same issue. I am able to see fonts are added in CF Admin.

    I suspect there is a little bit of padding between the HTML content and the edge of the PDF page. You could solve the problem by specifying the fonts and margins using the HTML style property, like this, for example:
    <cfdocument format="PDF" pageType="A4" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0">
    <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <style>
            body{font-family:arial,sans-serif;font-size:100%;margin-top: 0px; margin-left: 0px; padding: 0;}
            p{font-family:"Times New Roman", Times, serif;font-size:14px}
        </style>
    </head>
    <body>
    <!--- Content of your document --->
    </body>   
    </cfdocument>

  • Embeded Fonts in PDF documents

    Hello,
    I have a problem with a font that I have used in a document, some years ago. I created a pdf from a MS Word document and it seems that I have not embedded the font AG Chroma to the pdf. Hence a part of the text is not viewable from most pc's. Is there a chance of editing/adding a font in the existing pdf file, since my old doc file is no longer available??
    many thanx
    marios

    Hallo Marios,
    I too confronting with the same problem, but you know the reason why you got the FontException that is because of unsupported font you have within your pdf.
    Ok, So you can do one thing you can register the font factory under your windows installation folder :
    C:/windows/fonts/*.*;
    Then you can access the pdf file from any application without font exception.
    I am also in the midst of this path: so you please revert back is is satisfying for you or not.
    Thanking you
    Charles v c

  • How to embed audio clips into pdf document

    Hello I have a two-hour lecture I've transcribed. There are about 20 paragraphs. I want to embed the audio of the lecture into the pdf document so that when the reader clicks on a paragraph or on a button/control near the paragraph the audio for that particular paragraph starts up. An ideal version of this would be in pdf format and would allow the reader to click anywhere in the pdf and have the audio start from that point. I've never embedded audio before. I also have InDesign, Lightroom and Photoshop and can use them to embed audio before exporting to pdf.

    The exact process will depend on the version of Acrobat you have. In AA7, I just selected TOOLS>Advanced Editing>Sound Tool and added a sound file to the document. There were options for AA5 and AA6 compatibility as well as for embedding the sound file in the PDF.
    When you select the sound file, it asks if you want to play the file or accept the file as trusted for future requests. The file then played just fine. When I added the link, I was given a box to use to surround the area of interest on the page. You can set the border color and such (like make it invisible, though that might confuse folks).
    I am not sure what more you want. It is possible to add audio to open when you open the page also as well as set timing for the page. That would provide a way for the person to essentially have a lecture presented on your system without having to intervene. For the playing of the pages and timing, you may ahve to have the file open in full-screen, not sure.

  • Streaming/Embedding Youtube videos into PDF

    Hi all
    My boss wants me to add a youtube video into a PDF document. I am having trouble doing this. I have gotten as far as adding video from file source. However when it comes to adding the youtube url I become stuck.
    Thanks for your help....

    Hello SaBrHM,
    Embedding videos into emails is not possible.
    You can include a screen shot of the video and link to your site where the video is.
    Hope this helps,
    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • BEx reports to be converted into PDF documents.

    Hi All,
    We have BEx WAD applications that invoke multiple queries and bring back data in a report like format. The reports contain a number of different fonts, page number information, graphical charts and table structued data. These reports are made available in the portal as iViews. Is it possible to convert these reports into PDF format (for printing) from the portal whilst retaining the formatting of the data with their fonts and graphics?? The report in the PDF must look exactly like it does in the iView.
    Thanks
    Kunal.

    Hi Edwin and Sunil,
    Thank very much for the prompt responses. Edwin, the HowTo document shows how to do the process manually by copying the URL of the web template. The users of the portal will not or rather SHOULD NOT be doing this. This has to be an automatic function...the user clicks a link in the portal which says something like "Print in PDF format" and then adobe reader automatically launches and they simply click 'Print'.
    Sunil,
    what did you mean by give a command option of exporting the report to pdf format? Is this something within WAD itself? Can you point me to somewhere which will show me how to do this?
    Thanks alot.

  • Check fonts in PDF documents

    Hi
    I have a PDF document with more than 700 pages. I want to make sure all the texts in document only uses 2 font familes (for example, Arial and Times New Roman). If there are texts using other fonts I'd like to know in order to change it.
    In Adobe InDesign we have the Type > Find Font that is exactelly what I need (see the fonts in document, change them if necessary). Would we have in Adobe Acrobat Professional anything like this Adobe InDesign's Type > Find Font command?
    Thank you very much
    Gustavo.

    Hey Gustavo
    Try this ,
    File>Properties>Fonts
    From here you will see the various fonts used in the PDF.
    Further what you can do is ,
    Go to Tools>Content Editing>Edit Text and Images.
    Select a particular text or a file and you will be able to see the font of that selected text.
    Try this and see does that help.
    Regards
    Sukrit Dhingra

  • Passing variable into pdf document

    I have created a pdf document that I want to share with my marketing team.  However, in the document I want the url to be dynamic and show that individual's url.   For example, if my domain is www.xyz123abc.com   In the pdf, I want to setup the url in the document as www.xyz123abc.com/REPSITE.  Then when the pdf is opened from each individual's site, we will pass the REPSITE variable into the pdf document.   If my marketing page is www.xyz123abc.com/jim.   When someone visits my website and opens the pdf, they will see www.xyz123abc.com/jim.  When my partner Bob's site is visited, the pdf will display www.xyz123abc.com/bob. 
    So how can I dynamically pass variables from a website into the pdf?  

    Don't know if there is a better way, but you could use the 'identity Object'. Just make sure that the Identity is set in the application preferences for each employee
    var userName = identity.name
    Edit: Sorry, after rereading your post, I don't think this is what you are asking for. Perhaps the 'HostContainer Object' wll allow you to do what you want?

  • Embedding MS Accessibility controls into pdf document.

    I have a pdf form running fine in a server with Adobe Proffesional 8.0,  We need to update to Adobe Pro 9.0 or Adobe Pro 10.  The app is not performing well in those higer versions of Adobe Pro because we need to capture data from a pop up window to name an output file, but the data can no be scraped from the pop up window.  I heard that the problem can be circumvented by embedding MS Accessibility Controls into the form.  Can sombody please help me understand what is "embedding MS Accessibility Controls into a pdf form"?
    Thanks

    We have the pdf rendered in a JVM in an Intranet.  The pdf is displayed using Adobe Prod 8.0, when all the required data is captured from a phone interview, a button (click) triggers a WebService to execute and send a file to a Lenux Server. 

Maybe you are looking for