Embedding Fonts with Forms Service RenderPDFForm

We have several custom fonts being used in PDFs we're rendering using the Forms Service RenderPDFForm API. Rather than require consumers of these PDFs to have those fonts installed, we'd like to embed them in the PDFs being generated. Is it possible to embed fonts using RenderPDFForm?
Tom

In the adobe/LiveCycle8.2/deploy folder there is a file called:
adobe-forms-ivs-jboss.ear
Deploy that file on your app server (note that the name may change to reflect your app server). Once it is deployed you can access the application (it is a testing program for Forms). The URL is:
http://machinename:port/FormsIVS
Once it is loaded click on the preferences in the top right corner. Scroll to the bottom and add the administrator/password for your installation. In the first field (called Options) changed the parameter PADebug=0 to PADebug=1. Don't forget to hit the save button at the bottom of the screen. This will return you to the Test Form Design screen. Choose a form from the right List (I chose PurchaseOrder_Dynamic Interactive.xdp). In the Output format dropdown, choose PDFForm. Now click on the Use EJB button. A call to form server will be generated and returned to the screen. Because we have PADebug set to true the whole process is being traced. I am running a JBoss server so the files are written to:
C:\Adobe\LiveCycle8.2\jboss\server\all\svcdata\FormServer\Debug
It will be a different location depending on the appserver type you are running. In that folder is a file called:
debug_xci_pdf.xml
Make a copy of this file and rename it to MyTest.xci. This is the control file we will pass into the call and also modify to embed fonts. Open this file with an XML editor. In the xci file look for the pdf node under the present tag. In that node there is a child node called fontInfo. There is an embed tag in there that is set to 0. Change it to a 1 and save the file. Now in the call to Forms you can pass in a URI to this file in the XCI URI parameter. You can change this in the FormsIVS application in the options string and try it for yourself before changing our app. So now each time you want to embed the fonts pass the XCI URI into the call otherwise use the default one that is embedded in the jar file.
Let me know that it worked for you.

Similar Messages

  • Problems with embedded font with medium or heavy weight

    Hey guys,
    I'm switching a current Project from Flashbuilder Beta2 to the Flashbuilder final release.
    I have a big problem concerning embedded fonts. The fonts I have to use are Futura Com Medium & Futura Com Heavy.
    Here's some of my code:
    @font-face
         src:                        url("assets/fonts/FuturaCom-Medium.ttf");
         font-weight:               normal;
         fontFamily:                 myFuturaMedium;
         advancedAntiAliasing:       true;
         embedAsCff:                 false;
    .myDatagrid{
         fontFamily: myFuturaMedium;
         color: #ff0000;   
    this worked well in beta2, but I'm not able to get the embedded Font working in the datagrid with the Flashbuilder final release.
    Any help on using embedded fonts in a mx|Datagrid is highly aprechiated.
    Cheers

    Hey guys,
    I'm switching a current Project from Flashbuilder Beta2 to the Flashbuilder final release.
    I have a big problem concerning embedded fonts. The fonts I have to use are Futura Com Medium & Futura Com Heavy.
    Here's some of my code:
    @font-face
         src:                        url("assets/fonts/FuturaCom-Medium.ttf");
         font-weight:               normal;
         fontFamily:                 myFuturaMedium;
         advancedAntiAliasing:       true;
         embedAsCff:                 false;
    .myDatagrid{
         fontFamily: myFuturaMedium;
         color: #ff0000;   
    this worked well in beta2, but I'm not able to get the embedded Font working in the datagrid with the Flashbuilder final release.
    Any help on using embedded fonts in a mx|Datagrid is highly aprechiated.
    Cheers

  • Problem embedding fonts with ButtonSkin class with SDK 4.5.1

    Hi,
    I've an external style file calling into main mobile application which has codes something like these:
    @font-face {
              src: url("../fonts/TektonPro-BoldCond.otf");
      fontFamily: TektonProBCnd;
      embedAsCFF: false;
    .buttonStyle {
      embedFonts: true;
      fontFamily: TektonProBCnd;
      fontSize: 24;
      skin: ClassReference(null);
    .text_listMediumText {
      fontFamily: TektonProBCnd;
      fontSize: 24;
              color:                               #666666;
    In my application the embedding font styles working properly when directly bind with any component with 'styleName' property (i.e. text_listMediumText). I've also one button something like this:
    <s:Button label="CONNECT" skinClass="actionScripts.ui.SketchButtonSkin" click="onConnect()"/>
    And the skin class is as follows:
    public class SketchButtonSkin extends ButtonSkin
      //  PRIVATE VARIABLES
                         * CONSTRUCTOR
                        public function SketchButtonSkin()
                                  super();
                                  width = 268;
                                  height = 50;
      //  OVERRIDDEN API
      // Override this function to prvent the button from drawing a background
                        override protected function drawBackground(unscaledWidth:Number,
                                                                                                                               unscaledHeight:Number):void{
      override protected function
                                  labelDisplay_valueCommitHandler(event:FlexEvent):void
                                  labelDisplay.setStyle( "fontSize", 20 );
                   labelDisplay.setStyle("fontFamily","TektonProBCnd"); // or, labelDisplay.styleDeclaration = styleManager.getStyleDeclaration(".buttonStyle");
    But I not ever could embed the font with this buttonSkin class. Any help please (?)

    Try linking a Scroller into your app.

  • Add license fonts with Form Server

    How to add license fonts to Form Server?

    Hi,
    I dont know if it is possible with java command but it is possible to add through web application.
    I tried it long back on XI R2 SP2.
    BO provide classes like:
    ILicenseKey
    ILicenseKeyBase
    see if you can take help of these classes.
    setLicenseKey
    void setLicenseKey(java.lang.String newLicenseKey)Sets the license key value for a new license key.
    Parameters:
    newLicenseKey - A String containing a new license key value.
    For more information
    https://www.sdn.sap.com/irj/boc/sdklibrary.
    Thanks,
    Praveen.

  • Embedded fonts with rich editable text

    Hi, I am trying to use my embedded fonts in rich editable text field, but it only works for users that already have that font installed on their system.
    This is what I do.
    I embed fonts like this:
         @font-face {
                src:url("fonts/Cantarell-Regular.ttf");
                fontFamily: Cantarell;
                advancedAntiAliasing: true;
            @font-face {
                src:url("fonts/Cantarell-Bold.ttf");
                fontFamily: Cantarell;
                fontWeight: bold;
                advancedAntiAliasing: true;
    Then in my DropDownList (id=fontPicker) I add a new string entry that references my new font (in this case "Cantarell")
    I have a custom item renderer which makes sure to print out the name of the font using the font itself, so that for example font name "Cantarell" will be printed out using Cantarell font. Code in my custom font item renderer looks like this:
    <s:Label id="labelDisplay"
                 fontFamily="{data}"
                 verticalCenter="0"
                 left="3" right="3" top="6" bottom="4"/>
    And this part works, even if you dont have the font installed on your system, the name of the font is displayed propperly.
    The thing that I want to do is to select some text in my rich editable text field and change the font of the selected text depending on what user selected from the dropdownlist. I added an event which is called once user selects new font type, and it performs following code on the selection in rich editable text:
                   if(fontPicker.selectedIndex == -1){
                        //user did not select anything, we do not change the font
                        text.setFocus();
                        return;
                   //we get the text layout format of the selected text
                    var txtLayFmt:TextLayoutFormat = text.getFormatOfRange(null,text.selectionAnchorPosition,text.selectionActivePosition);
                   //we change fontFamily of the selected text to the font that we just picked
                    txtLayFmt.fontFamily = fontPicker.selectedItem;
                    // I even tryed to add those two following lines without much help
                    //txtLayFmt.fontLookup = FontLookup.EMBEDDED_CFF;
                    //txtLayFmt.renderingMode = RenderingMode.CFF;
                   // we update our selected text with new font
                    text.setFormatOfRange(txtLayFmt,text.selectionAnchorPosition,text.selectionActivePosition );
                    text.setFocus();
    This code works perfect if user has the font installed on their system but it does not work if they dont have the font even if I embed the font.
    What I am doing wrong, any suggestions, tips, links?
    Thanks,
    Dal

    Thanks I will take a look at your blogs, maybe I find some explanations.
    Once it comes to my problem, I found a solution, I just needed to add a simple style:
            .mystyle1 {
                 fontFamily:Cantarell;
    and set the styleName of my text to it:
    text.styleName = "mystyle1";
    Afterwards I can dynamically change fonts and sizes of the text selections in my rich editable text field as much as I like.
    Also I need to make sure that I set embed-as-cff: true;
          @font-face {
                src:url("fonts/Cantarell-Bold.ttf");
                fontFamily: Cantarell;
                fontWeight: bold;
                advancedAntiAliasing: true;
                embed-as-cff: true;
    I hope this helps someone.
    And if anyone has explanation to why embedded fonts work only after I change styleName of a text to a random style, please share with me.
    Cheers,
    Dal.

  • How to add new a font with Forms 6i running on Web URGENT !!!

    In Forms 6i , I have added a new Font and installed it successfully .In client Server
    mode the Form is Successfully Showing me
    the newly added font. But when I run this Form on Web It does not shows me the font correctly. The font is a True Type Font for
    Windows . I am running my forms using OAS 4.0.8.1 on Win NT. Do I need to make some configurations on the Server ????
    Please Help ?????

    Thanks.
    1/ Actually most of the customers will use our app through normal 56k modems. Their first connection must avoid to download Jinitiator which is 8Mo, so we don't want people to use Jinitiator (opening the session is even longer with Jinitiator than IE5).
    2/ Moreover, the applet window has a grey title line with the word "window" and the name form : this is not internet at all ;-)
    3/ A normal connection through a firewall doesn't work with the famous port 9000.
    help please.
    Thank you
    null

  • Embedding fonts with CSS

    I have a client wanting a particular font used on a web page.
    I have searched a bit as to how to do this and apparently it's possible with a few lines of CSS code.
    I don't see too many examples and I am sure there will be compatabililty issues with browsers.......
    Any actual experience out there.
    Thanks,
    Rick

    Hi
    Be aware that these will ONLY work in Firefox 3.6.x, Safari 5, Chrome 8+
    (pretty sure about this one), IE 9+, Opera.  Older versions of IE and
    Firefox will only show the default browser font instead of
    substitution.
    Sorry but this is not true, the @font-face rule was first implemented in IE4.5, and works across all the current IE version, the difference is the font format, (file extension used) in version of IE < 9, but it does still work, and as for Firefox the @font-face rule was implemented from version 2, but again the font file extension was changed in version 3. and additional types of font files have been implemented in FF4, Safari (and Chrome) also has similar implementation to FF, (from version 3) but does not include the new format as an alternative.
    The licensing issues are the only real major drawback now and this will probably not change for a few years yet.
    To find out how to use @font-face, (cross-browser) and for free 'open-source' fonts my recommendation is - http://typekit.com/, which is much better than Googles offerings, there are a number of paid for services available and a search, (using your preferred search engine) will find these for you, but in no circumstances should you even consider un-licensed use of fonts.
    You may also wish to read this thread - http://forums.adobe.com/thread/740447.
    PZ
    www.pziecina.com

  • Behaviour JRE1.6 with Forms services compare to Jinitiator

    Hi,
    I want to optimize oracle forms traffic on the Wan through Wan optimization appliances.
    The customer OracleAS 10G R2.
    The constraint is that he wants to use JRE1.6 with http or https communication modes.
    I know that services forms exchanges are encrypted in RC4-40bits which isn't a problem
    for the wan accelerator equipments.
    But i have heard that JRE doesn't behave like Jinitiator because it maintains a session
    between the Java Machine and the Oracle listener which prevents the optimization
    to work.
    So i would like to know if there is a real difference between Jinitiator and JRE1.6
    in the exchanges between Client and Server.
    Best regards.
    Andre

    This seems to be a very specific question regarding the Application Server, you would probably increase your chances to get a response if you post the question in Application Server forum.
    Oracle Application Server - General

  • Embedding Flash With Forms using ActiveX Controls

    I have problem embedding Flash Movie using Active X control. I always come up with the message
    " No tenant for this object" can You help me out with this.
    thank you.
    Khurram.

    This forum is for feedback about the OTN program and problems with OTN accounts. Technical questions cannot be answered here. Please post your question in the appropriate product or technology forum.
    http://forums.oracle.com/forums/index.jsp?cat=48

  • Embedding fonts with an application

    This is a multipart question so I will put up some bucks for a good answer.
    I am writing an application and have a set of fonts that I want to bundle with it. I want the application to use ONLY these fonts and not have access to any other system fonts. Does anyone have any experience with this and is it even possible. My thinking is that I would need to somehow install the fonts on the users system and then modify the font.properties file. I would like to bundle everything together in the application but I don't think that is possible, is it?
    If this is a simple thing and I have just not looked in the right places for an answer than point out those places to me and earn some Dukes! I have looked everywere and there doesn't seem to be much info out there, but what do I know... I may be dumb, I do not argue that.
    WHAT DO I DO?
    CAN I DO ANYTHING?
    I AM TIRED!
    Help me and earn big bucks.
    Thanks.

    Well if you're using JDK 1.3 and up, you can do it easily with the following code:
    FileInputStream fileStream = null;
    Font font = null;
    try {
    fileStream = new FileInputStream("BASSETB.TTF");
    font = Font.createFont(Font.TRUETYPE_FONT, fileStream);
    font = font.deriveFont(Font.PLAIN, 12);
    fileStream.close();
    } catch (Exception e) {}
    Font.createFont(x,y) only works with true type fonts, and is only availabe after JDK 1.3. But you don't have to mess with any properties files this way.

  • Embedding Fonts with ActionScript

    I'm trying to embed dynamic text and the ActionScript tab is disabled.  I need to acess that tab to complete a tutorial.  How can I enable it?

    Can you be more specific? May be I can help.
    - Hemanth

  • Problems with embedded font on spark RichText control

    « Hide
    I have an embedded font that appears correctly when used with Halo components, but when associated with the spark RichText component, it is not recognized.
    The embedded font is defined in css file, my css file
    @namespace s "library://ns.adobe.com/flex/spark";
    @namespace mx "library://ns.adobe.com/flex/halo";
    @font-face {
    src:url("assets/fonts.swf");
    fontFamily: "Helvetica Neue";
    @font-face {
    src:url("assets/fonts.swf");
    fontFamily:"Helvetica Neue";
    fontWeight: bold;
    global{
    color:#333333;
    fontFamily: "Helvetica Neue";
    fontSize:12px;
    The embedded font it used in the following manner:
    <mx:Label styleName="panelTitle" text="Hello There"  width="263" x="21" y="11"/>
    <s:Group width="410" x="38" y="52" height="50">
    <s:RichText styleName="panelTitle" text="Hello There" fontFamily="Helvetica Neue"  width="263" x="21" y="11"/>
    </s:Group>
    The Label shows the embedded font correctly while the RichText control does not. It does not matter if the fontFamily is specified explicitly on the control or not.
    I created a bug SDK-22137, but since I'd need to get this working soon any help would be appreciated.

    Just a friendly reminder. Many of the examples on that site are fairly old and havent been updated to use the latest APIs. For example, "cff" has recently been renamed to "embedAsCFF". In fact, here's a better example:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo">
        <s:layout>
            <s:VerticalLayout paddingLeft="20" paddingTop="20" />
        </s:layout>
        <fx:Style>
            @namespace mx "library://ns.adobe.com/flex/halo";
            @namespace s "library://ns.adobe.com/flex/spark";
            /* DefineFont3 (embedAsCFF == false) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgia;
                fontWeight: normal;
                embedAsCFF: false;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgia;
                fontWeight: bold;
                embedAsCFF: false;
            /* DefineFont4 (embedAsCFF == true) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: normal;
                embedAsCFF: true;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: bold;
                embedAsCFF: true;
            mx|Label {
                fontFamily: embGeorgia;
            s|RichText {
                fontFamily: embGeorgiaCFF;
                fontLookup: embeddedCFF;
        </fx:Style>
        <mx:Label text="Halo Label" />
        <mx:Label text="Halo Label (bold)" fontWeight="bold" />
        <s:RichText text="Spark RichText" />
        <s:RichText text="Spark RichText (bold)" fontWeight="bold" />
    </s:Application>
    Also, depending on what you're trying to do, this may help you: http://blog.flexexamples.com/2009/06/14/using-a-cff-embedded-font-with-a-halo-label-contro l-in-flex-4/. Basically, you can set the textFieldClass style on certain Halo controls and have them use the mx.core.UITLFTextFieldClass (instead of the default mx.core.UITextFieldClass) so they can take advantage of the new CFF fonts.
    In fact, here's the same example as above, but with the single embedded font:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo">
        <s:layout>
            <s:VerticalLayout paddingLeft="20" paddingTop="20" />
        </s:layout>
        <fx:Style>
            @namespace mx "library://ns.adobe.com/flex/halo";
            @namespace s "library://ns.adobe.com/flex/spark";
            /* DefineFont4 (embedAsCFF == true) */
            @font-face {
                src: url("assets/georgia.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: normal;
                embedAsCFF: true;
            @font-face {
                src: url("assets/georgiab.TTF");
                fontFamily: embGeorgiaCFF;
                fontWeight: bold;
                embedAsCFF: true;
            mx|Label {
                fontFamily: embGeorgiaCFF;
                textFieldClass: ClassReference("mx.core.UITLFTextField");
            s|RichText {
                fontFamily: embGeorgiaCFF;
                fontLookup: embeddedCFF;
        </fx:Style>
        <mx:Label text="Halo Label" />
        <mx:Label text="Halo Label (bold)" fontWeight="bold" />
        <s:RichText text="Spark RichText" />
        <s:RichText text="Spark RichText (bold)" fontWeight="bold" />
    </s:Application>
    Peter

  • Using HTML text with an embedded font in Flex 4

    I have spent a day searching the interwebs and have not found a working example of how to use an embedded font with html formatting.
    Anybody know if it can even be done??

    Should be doable, but all fonts used in the html have to be embedded, and
    one of the fonts should be specified as the fontFamily for the component.

  • Tip for embedding fonts while maintaining bookmarks

    I've been sent a couple of very large PDFs in which the fonts aren't embedded properly. They're either missing, or the Adobe Serif MM has been used and embedded instead. This can cause the fonts to display and print poorly.
    Using the Preflight "Embed all Fonts" didn't seem to work, so I decided to export as PostScript, then Distill again, which seemed to fix everything.
    However, the documents were several hundred pages, and had extensive Bookmarks. These bookmarks were now lost in the re-Distilled version.
    The solution? Replace all the pages in the original PDF with re-Distilled PDF. Bingo: Properly embedded fonts, with all the bookmarks.
    There may be another method (export pdfMark in the .ps?) but I couldn't find it, and I thought if anyone was in the same boat, they might like to know this. Obviously, in an ideal world, I would get the creators to re-supply, but they showed no interest.

    Instead of printing a PDF with the PDF printer you can just flatten it, which renders the form fields static.
    This is a good (and free) tool for that: UVSAR : Selective Flattener tool for Adobe Acrobat 8, 9 and X

  • Fully embedding fonts in PDF

    Hi,
    I had a piece of information but I can't seem to find it anymore so I have to ask ...
    This is about understanding limitations of fully embedding fonts in a PDF (from Indesign Server). Actually it's about one limitation in particular. I know fonts with licensing issues or fonts that are marked "embedded not allowed" will not be embedded. Also, there is a threshold that I need to set.
    So, I recall reading somewhere that Indesign will not fully embed "standard" fonts. Is that correct and what is this standard fonts category?
    Oh, reading through some posts, I noticed lots of people and experts ask why does one need fully embedded fonts. That's a good question and I don't know the root reason but in my case it seems that some regulatory agencies (in the life sciences/pharma domain) require PDFs with fully embedded fonts.
    Many thanks
    Cristian

    On behalf of Adobe:
    (1)     For both InDesign “PDF export” (including InDesign Server) and Illustrator “save as PDF” functions, most but not all of the .joboptions file font embedding options are totally and utterly ignored. The options that are ignored are the Embed all fonts, Embed OpenType fonts, Always embed, and Never embed. Those options are observed by Distiller and the PDFMaker components of Acrobat.
    (2)     These applications will attempt to embed all fonts referenced by the document, regardless of the settings of the .joboptions file. The only reason why a font would not be embedded in a PDF file would be if (a) the font was unavailable (i.e., not installed on the system) or (b) the font's embedding permissions do not permit embedding for at least preview and print privileges. Thus, if you use the so-called Standard .joboptions (strongly not recommended for any graphic arts purposes), even the base 14 fonts (four faces each of Helvetica, Times, and Courier along with Symbol and ITC Zapf Dingbats will be embedded if your document references them.
    (3)     The subset threshold value of 0 (zero) may effectively cause all the glyphs of a font to be embedded in some, but not all cases. This will work for many if not most Type 1 fonts and some smaller TrueType and OpenType CFF fonts. Note that embedding all glyphs in a font is not the same as embedding a full font. For OpenType and TrueType fonts, InDesign and Illustrator never embed all the tables of the font. Such unembedded tables include those used for pair kerning, advanced OpenType features (such as ligatures, alternate representations, contextual alternates, small caps, old style figures, etc.), and extended metrics.
    (4)     There are plenty of bubbameissas out there with regards to the benefits or liabilities of either fully embedding or subset embedding fonts. What is true is that: (a) Acrobat never uses the embedded font for text editing - you must have the font installed on the system in order to do such edits. (b) Subset embedding or not is totally irrelevant to what a RIP does when rendering text, either for PostScript or direct PDF RIPs. Neither subset or full embedding is any more reliable than the other and the specifications of PostScript and PDF do not permit the RIP to replace the embedded font with a font with a similar name - urban legend notwithstanding!!!! (c) Third party plug-ins to Acrobat or applications that claim to allow you to edit PDF files with embedded fonts may be illegally letting you do so if the embedding permissions do not permit embedding for editable embedding or installable embedding - most fonts do not provide such embedding permissions and since the fonts are missing metric information, such editing may be somewhat lacking in quality or features.
    (5)     In fact some very non-tech-savvy organizations have posted requirements for full embedding of fonts in submitted PDF files (I have personally seen one such requirement by some international bureaucracy). They can post such bone-headed requirements based on limited understanding of PDF and PDF workflows, but that doesn't mean that anybody actually provides such PDF files. If in fact you run into such requirements, I would appreciate it if references to same can be forwarded to my attention by private message on these forums.
              - Dov

Maybe you are looking for