CFPDFForm populate existing PDF Chinese font

I am using livecycle pdf template to populate the section dynamically using XML data file. I am using CFPDF (#ColdFusion) tag with populate action, when CF generates the PDF I can see the static data in Chinese but dynamic data is not visible, I am using Microsoft Yahei font which is embedded in PDF template. If I use Arial font for dynamic data, it shows the characters as ??? which shows data is coming. The XML I am passing is of UTF-8 encoding.
If you need more info or want to know what's in XML, I can post that as well.
Please help
Philip
here is how I am using the tag:
<cfpdfform action="populate"
            source="#template#"
            destination="#expandPath(variables.printDestinationPath)##arguments.filename#"
            overwrite="true"
            overwriteData="true"
            XMLdata="#arguments.printData#"
        />

This may seem totally obvious, but have you made sure that the user account that coldfusion is running on has privledges on the server to actually access that resource? [Edit: by totally obvious I meant that you most likely already tried this and this question is probably moot]
The "java.io.FilePermission" error message seems to indicate that there is either a problem with user account permissions on your server.
Message was edited by: insuractive

Similar Messages

  • Cfpdfform (CF8) changes text-field font of an adobe 9 pdf form to Courier

    I'm having problems getting cfpdfform to render the text-field font as it exists in the source pdf form.
    The source pdf form was created in Acrobat 9 Standard.
    When I download the pdf from the server using cfcontent, the text-fields look as expected, retaining their designated font (and the pdf has the desired fonts embedded).
    However, when I do a cfpdfform action="populate", the text-field font is switched with Courier (even though the desired fonts remain embedded).
    This happens regardless of what font I pick.
    I have verified that the font exists on the server and in cf admin.
    Here's my code:
    <!--- populate --->
    <cfpdfform action="populate"
               source="#pdfPathFile#"
               destination = "#pdfPathFile#"
               overwrite = "yes">
        <cfpdfformparam name="student_name" value="first name and last name" />
        <cfpdfformparam name="certificate_title" value="a cool certificate title" />
        <cfpdfformparam name="certificate_date" value="1/1/2010" />
    </cfpdfform>
    <!--- make read-only --->
    <cfpdf action = "write"
           destination = "#pdfPathFile#"
           source = "#pdfPathFile#"
           flatten = "yes"
           overwrite = "yes"  />
    <!--- return the content --->
    <cfcontent
        file = "#pdfPathFile#"
        deleteFile = "yes"
        reset = "yes"
        type = "application/pdf" />
    Commenting out the cfpdf action = "write" block produced the same outcome.
    Using different source and destination filenames (vs overwriting  existing one) didn't make a difference, either.
    Any ideas on how I can get cfpdfform to respect my predefined text-field fonts?
    I truly appreciate your time.

    The problem was resolved.
    Turned out to be the way the pdf was created by Adobe 9 Standard that made cfpdfform misbehave.
    Three things we did seemed to have made the pdf acceptable by cfpdfform:
    1. Downloaded the latest updates for Adobe 9 Standard
    2. Checked on the text-field "Multi-line" property
    3. Checked off the text-field "Rich Text Formatting" property
    Cheers.

  • Prob with chinese font bold, italic... in PDF report

    Hello everyone ! :D
    My symptoms (overview) : to create my RDF report, I'm using a font, simsun.ttf, wich allow me to view chineses and french characters. Everything is ok, except in PDF format, all the items remains in "normal" style.
    My configuration : Windows NT4 SP6a
    Report Builder 9.0.4.2
    Acrobat Reader 7.0
    Oracle Database 9.2.0.6
    In Detail : in report builder, every items (text fields, labels,...) are directly created with SimSun font. Some items are bold, some italic, ...
    If i generate the report in RTF format, my items bold, italic, ... are ok in Microsoft Word (SimSun Bold, ...). However, if i generate the report in PDF format, everything is in "normal" style.
    I changed the file UIFONT.ALI like this :
    [ PDF:Subset ]
    # This example shows how to subset Arial True Type font into the PDF file
    # Arial = "Arial.ttf"
    # The True Type font files must exist in any one of the folders specified in
    # REPORTS_PATH.
    SimSun..Italic.Bold.. = "SimSun.ttf"
    SimSun...Bold.. = "SimSun.ttf"
    SimSun..Italic... = "SimSun.ttf"
    SimSun..... = "SimSun.ttf"
    and also like that (just to try something else, but it does not change anything) :
    [ PDF:Subset ]
    # This example shows how to subset Arial True Type font into the PDF file
    # Arial = "Arial.ttf"
    # The True Type font files must exist in any one of the folders specified in
    # REPORTS_PATH.
    SimSun = "SimSun.ttf"
    Obviously, with an Arial font, we can map the different files Arialb.ttf, Arialbi.ttf, ... according to the desired font style we want, but with SimSun font, there is only one file : SimSun.ttf.
    Obviously, i have no choice for the font... I have to use SimSun.
    Anyway, if i take a look at my PDF, the used fonts (in file>property>fonts>) i can see several personnalized fonts, each one corresponding to a SimSun style (one for SimSun, Bold, an other for SimSun, BoldItalic, ...) but everything is the same style on screen.
    Does somebody have an idea??
    Thanks a lot !

    Hi I am also facing same Problem If you get solution to this please help me.
    I have one sugestion,Inf you PDF file go to file>Document Properties>fonts
    chech that if tyep is TYPE3 and font is CUSTOM then it is using subsetting ,and if not then report is using pdfs default font and it is not using required font
    Hope this may solve your Problem

  • CONVERT_OTF Convert TO PDF the Chinese font bold is lost

    Dear All,
         When I use CONVERT_OTF Convert TO PDF the Chinese font bold is lost, but use Print to PDF method, the Font Bold can be showed normal.
    Also used these reports RSTXPDFT4, RSTXPDF2UC, it does not work.
    How can I solve this issue?
    Many Thanks

    Hi,Aidan,
        Thanks,
         Sorry,the option CJK_USE_BOLD_IT does not exist in report RSTXPDF3 when I run this report.
         I found only CJK_SMALL_FONT such as u2018CJK*u2019 in my system.
         Is there a way to add CJK_USE_BOLD_IT?
        When I check RSTXPDF3,I found all the options are hard copy in RSTXPDF3 list by Constants.

  • How to Embed fonts in existing PDF file

    HI,
    I want to know how to embed the fonts in an existing PDF file, i do have Acrobat.
    Thanks

    Post your question in the forum for Acrobat.

  • When creating a fillable form fields from an existing pdf file, how do you set or allow end user to set the font size in the fields?

    I successfully created a form filled pdf using an existing pdf document.  However, the font size is too large to allow end user to type in information in the form box.  Is there a way to 1)globally set all  of the form fields when generated to a much smaller font size &/or 2) allow end user to change the font size if needed to put all information in one box without font being so large?

    Hi DenisonDoc,
    There is no option right now to set properties globally primarily for Text fields. You may make sure fields doesn't contain anything.
    Select all the text filed from the form and right click any of the selected field make sure all of them are selected choose properties --> Appearance there you can choose Font Size and Font type.
    - End users cant change size and type of font. It is up to designer.
    Regards,
    Ajlan Huda.

  • 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...

  • Embedding fonts in an existing pdf that does not have the fonts embedded

    Hi,
    I have an existing pdf that fails to open on my ereader.
    So I opened in acrobat x pro to see what might be the cause.
    Selecting "file"--> "properties" -->"font" ( fonts used in this document) I can see that this pdf uses multiple windows trueType fonts and that none of them are embedded in the pdf document.
    Now my ereader is linux bases, so I am guessing this might be a problem.
    Being an ereader I didn' give me much to go on.
    So i would like to embed all the fonts listed in this list into the pdf file and save it again with the fonts embedded.
    I went to "file"-->"save as optimized pdf" -->"font"
    But there both lists embedded and unembedded fonts are empty.
    Why is this and how can I embed the fonts shown in the document properties into the pdf?
    They seem standard windows fonts like e.g.  ArialNarrow

    I just looked a bit furder and actually checked wether the fonts existed and found the following:
    I am using windows vista.
    The fonts mentioned in the properties of the pdf actually exist in the windows installed fonts but
    in windows they are no longer TrueType but OpenType.
    So I am guessing this might be the reason they are not in the list of unembedded fonts in the optimizer window.
    Is there an easy way to say to acrobat to replace one font ( not found on this computer) with another font that does exist and also to embed that font in the pdf document?

  • Interactive pdf form with text fields. Chinese fonts

    Hi All
    We have designed an interactive pdf with text fields. We need the text fields to be in a Chinese font. I understand that this cant be done in Indesign (change the inputting font to Chinese) I have moved the file over to Acrobat Pro and used the text property to amend the font to Simsun but when we try it out the font is still in English. Any ideas on how to remedy the problem??
    Thank you in advance
    Paul

    Basically, you need to create a pdf form.
    Add a text field to your form.
    There you can choose which font your want the text to appear in.
    The trick is, when you export from InDesign, in the "Advanced Tab" — set "Subset fonts when percentage…" to 0%, so the whole font embeds.'
    I believe there's an option in Acrobat to embed the font as well, but I'm not recalling what it it.
    But that will ensure the font appears correctly.
    d

  • I can't add chinese font into a pdf

    I have scanned a book and OCR it into an PDF file. I want do some translation work that change the English to Chinese. I only use the Touchup tool, It's so hard to do, I have to right-click-properties-change the font to Simsun(It's the only Chinese font I can find in the font list), and when I type one word, the font set back to the original Arial, I can't do it in this way
    Anyone have a good way to help me? I'll really appreciate your help

    You don't understand our thrust. PDF files are really not meant for
    editing! Only the most minor of changes can be made and even if you can
    change a single letter, you cannot expect the text on the page to follow
    its previous course. It might, but all to often it will not. I have
    seen changing one letter ruin several lines of text! It is always,
    always, ALWAYS better to create the document anew rather than try any
    serious editing. Even with minor editing it is better to recreate the
    document if possible.
    Mike

  • Embedding traditional chinese fonts in pdf

    Hi,
    I am trying to embed traditional chinese fonts in the mdf template.
    I created a soft font catridge using Angsana font and with symbolsets big5 and GB.
    I have also made the registry changes as mentioned in the below specified article:
    http://www.adobe.com/support/products/enterprise/knowledgecenter/c4230.pdf
    But when i test the mdf it shows junk chracters instead of chinese...
    Can any one help me out...?
    Thanks in advance
    Bhagya.

    Thanks Tom. Yeah, I understand that PDFs are not designed to work like word-processing files, etc., and the need to have the Chinese text copy over well is really just to prove that the document is searchable (i.e. if it can copy a short section of text Ok, then it means the characters are recognized by the PDF reader and I can search the document, which is my main goal.)
    The problem I mentioned with Preview, etc., is actually a new one; one that has become a big problem for me only in the last few weeks. Before, I never had this issue. I'm not sure what changed, but I was suspecting MacKeeper and their "language cluster" cleaning feature, where it "helps" you by removing unused fonts. Though, I can't quite confirm that this has played a role. I just completely reinstalled the OS thinking that this would fix the issue by installing all the original fonts again, if MacKeeper did indeed remove the fonts these PDF programs use when editing or saving PDF files. However.....unfortunately....the problem is still here.
    So, that developer I mentioned in the first thread who said this is an OS X issue may indeed be correct.
    And just to be clear, I have confirmed that the PDF's I working with do have the fonts embedded already. It is only when I alter them and then save or export from Preview, Skim, Nomad, etc., that the character information gets stripped out and I'm left with a document that one can read but cannot search. I can't even OCR it because this problem also affects my OCR software, as if it can't get access to the fonts needed to embed in the recognized PDF.
    Any other thoughts? I'd appreciate any you have.

  • Cannot display Chinese font in PDF Report

    I am using Oracle Report Server 11g currently. I have met a problem that the chinese font cannot be displayed in the PDF report which is generated by oracle report. Can anyone help ?

    Hi...
    You can achieve this in XML report.
    As per metalink Note id ID 842856.1,
    1. Copy the following font files from $FND_TOP/resource to the /lib/fonts directory (under OA_JRE_TOP).
    ALBANYWT.ttf - "single-byte" characters only
    ALBANWTJ.ttf - Unicode font with Japanese Han Ideographs
    ALBANWTK.ttf - Unicode font with Korean Han Ideographs
    ALBANWTS.ttf - Unicode font with Simplified Chinese Han Ideographs
    ALBANWTT.ttf - Unicode font with Traditional Chinese Han Ideographs
    2. Restart the Apache.
    Regard,
    Sathiya.

  • PDF in Chinese Font

    Hi all,
    I found that the adobe reader can not open a PDF file embedded with chinese font "Ming(for ISO10646)", but other PDF readers do it, say Foxit, google doc. I've attached the PDF file.
    Thanks a lot.
    Rgds,
    Ricky

    The document wasn't created with Adobe Acrobat. Why did you post your question in the forum for Adobe Acrobat?
    At open I get the error message: "Dictionary keys must be direct name objects."

  • 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...

  • Unicode (international) characters in cfpdfform with LiveCycle PDFs

    Hi all
    These are the details of my environment:
    ColdFusion version: 8.0.1
    Update level: C:/ColdFusion8/lib/updates/chf8010004.jar
    Server OS: Windows Vista 64
    Web server: Apache
    I'm using cfpdfform in ColdFusion 8 to read a Livecycle 8.2.1 pdf form straight into the browser window, enter text into a couple of fields and then submit the form back to the same CF page and use the submitted XML to populate the same form.
    So, the relevant bit of my code is as follows:
    <cfif IsDefined("PDF")>
        <cfpdfform action="read" source="#PDF.content#" xmldata="myXMLData" />
        <cfset myXMLData = XMLParse(myXMLData)>
        <cfpdfform action="populate" source="c:\temp\myPDFForm.pdf" xmldata="#myXMLData#" overwritedata="true" />
    <cfelse>
        <cfpdfform action="populate" source="c:\temp\myPDFForm.pdf">
            <cfpdfsubform name="topmostSubform">
                <cfpdfformparam name="TextField1" value="Hello! The time is #TimeFormat(Now(), 'HH:mm:ss')#" />
            </cfpdfsubform>
        </cfpdfform>       
    </cfif>
    This all works just fine, except that any multibyte unicode characters (e.g. Chinese) I enter into any text fields are lost (turned to question marks) when the form is populated from the submitted XML, even though I can see that the Unicode characters remain intact if I do a cfdump of the myXMLData variable on page submission.
    I ordinarily have no problems with Unicode. I can write unicode characters in multiple foreign character sets to database and retrieve them just fine. I have site pages in several international character sets, and, as I have stated, the text I enter is displayed correctly in the correct foreign characters when I view a cfdump of the submitted form, so this appears to be specifically related to the PDF form populate side of things (or a setting in LiveCycle).
    I have an inkling that the cause is that the LiveCycle form has its  text fields set to allow rich text and has a specific font set against  the fields, so I'm wondering whether the foreign character font, which  displays fine when I enter it into the form, is being lost (overwritten by the LiveCycle field font) when read  back into the form. Any ideas as to how to overcome this problem would  be gratefully accepted.

    Okay, I think I got to the bottom of this. The following full page code works:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>cfpdfform Post and Populate Example</title>
    </head>
    <body>
    <cfoutput>
    <cfif IsDefined("PDF")>
        <cfpdfform action="read" source="#PDF.content#" xmldata="myXMLData" result="data" />
        <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" xmldata="#myXMLData#" />
    <cfelse>
        <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" />
    </cfif>
    </cfoutput>
    </body>
    </html>
    The key to stopping the Chinese characters from breaking was to remove the overwritedata attribute from the populate tag on the action page. In other words, changing
    <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" xmldata=""#myXMLData#" overwriteData="yes" />
    to
    <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" xmldata="#myXMLData#" />
    fixed the problem.
    As an interim measure, I wrote out the submitted PDF form XML to a file and took a look at what was happening and used the XML file as the basis for populating the PDF form, like this:
    <cfif IsDefined("PDF")>
         <cfpdfform action="read" source="#PDF.content#" xmldata="myXMLData" result="data" />
        <cffile action="write" file="c:\temp\myXMLData.xml" output="#myXMLData#" charset="utf-8" nameconflict="overwrite">
        <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" xmldata="c:\temp\myXMLData.xml" />
    <cfelse>
         <cfpdfform action="populate" source="c:\temp\myLiveCycleForm.pdf" />
    </cfif>
    As well as causing the Chinese characters to break, the overwritedata attribute when populating the form appears to strip out any rich text  formatting (CSS) from form fields.
    Dropping the overwritedata attribute preserved the Chinese characters, regardless of whether the PDF form is populated directly from the posted PDF XML (as in the full example above) or via an XML file.
    On a separate issue (one I'll post to the LiveCycle forum but I'm mentioning here for other people's reference), any XML which contains in-line CSS formatiing (e.g. individual words in bold text) using the span tag causes a ColdFusion error when used to populate the PDF form.

Maybe you are looking for

  • Droid Slow/ lack of customer service

    For the past 6 months my phone has been acting up. It freezes, websites refuse to load, apps stop working. The phone turns on and off itself, and crashes with no known point of return. I have gone to 4 different Verizon stores in 2 different states,

  • Restrict posting of invoice before PO and GR Date

    Hello, Can anybody tell me how system allows to post MIRO before PO and GR Date. I created a Purchase Order in March.GR Based IV was ticked in PO for all items. GRN  was done on April 4th . When MIRO was done with reference to PO , by default current

  • How to change Port Information shown in sicf in fully qualified host name?

    Hi guys, I want to use the CS Documentation Tool for SAP BW. In DEV everything is OK, but in PROD I can´t execute. I know what´s wrong, but I don´t know where to correct the error. When I use transaction sicf -> execute -> GoTo -> Port Information I

  • Display html content in BrowserContentManager

    hello guys .                     i want to display html content with help of BrowserContentManager...                     how it ll dio can any one tell me plz.

  • OTL: Changing the rotation plan name

    Hi All, Is there any impact for changing the names of rotation plans, work plans, and shifts, noting that the rotation plan is assigned already for many assignments? thanks,