Cyrillic Characters not shown in pdf file when xsl is parsed

Part of the application we have created allows the user to view PDF pages, so they are more suitable for printing.
We create xsl files which eventually get transformed into the PDF format.
We use the javax.xml.Transform.Transformer to transform the xsl file and xml.
We use the org.exolab.castor.xml.Marshallerto general the xml.
We use Apache Fop to turn the XML into the PDF format.
Before it was working fine, we get some text from a resource file, which we call in the xsl. But now we want to do this in Russian. When we read the same resource file in the xsl, but with the cyrillic characters in it, the pdf view is just question marks, and other characters. Nothing russian.
Does anyone know where I could start looking to find out what is wrong?

just generate the font metrics files for the fonts you intend to use, as explained on FOP web site, then you will get the Cyrillic chars.

Similar Messages

  • Cyrillic Characters not shown in pdf file when xsl is parsed part 2:

    I am using Fop to create a pdf file from an XSL file, an XML file and a ApplicationResources.properties file.
    The XML file is populated by a Java class, where the information is taken from a Russian Database. This XML file is them used to populate the XSL file.
    The ApplicationResources.properties file, is in windows 1251 format, as we converted it using NativeToAscii converter.
    I downloaded a cyrillic ttf file, and created a metrics file, according to the Fop website. And I had Russian appearing on my PDF from the database (not ApplicationResources.properties file though). However, the information which we were retrieving from the database would not display on the jsp pages which are part of the same application.
    To fix this, we changed our database driver from a ODBC-JDBC driver, to an oracle thin type 4 driver.
    Since this happened, my cyrillic characters no longer appear on my PDF file.
    I know that the information from the database comes back in windows 1251 format, so I tried to put the
    <?xml version="1.0" encoding="windows-1251"?>
    and
    <?xml version="1.0" encoding="Cp1251"?>
    but when I do this, I get the following error in my log file:
    L2|14:14:58:433|ExecuteThread-9|PDFService.generatePDF: class com.petrotechnics.skyobma.service.SkyobmaServiceException Exception :javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The encoding "Cp1251" is not supported.
    or the windows-1251 is not supported.
    I do not know what to do at all, I am really struggling and was wondering if anyone had any idea about where I can go from here, or even if someone can just tell me I am fighting a loosing battle I would be happy.
    Yours Truly Hopefully,
    Gillian Daniel

    either you configure FOP to use a SAX Parser that supports Cp1251 or you encode your XML data to UTF-8.
    we flawlessly generate Greek PDF documents out of data selected from Oracle 8.1 by using UTF-8.

  • Print to PDF - using Snow Leopard (Saving a PDF file when printing is not supported. Instead, choose

    i have a PDF form that i created that is used as a custom proposal that my company sends out to potential clients. the form in its editable state is only used internally. we recently upgraded to snow leopard, but prior to the upgrade, we were able to fill the custom proposal form out using adobe reader, and, as you well know, we weren't able to save that edited document as a PDF with the custom form fields filled out. our work around using adobe reader was to print to a pdf using the adobe pdf printer in the printer dialog. with the addition of snow leopard, however, instead of choosing the adobe pdf printer, we were to choose PDF from the bottom left corner, then Save As PDF, and it would spit out an uneditable pdf that then allowed us to email it to the potential client without them being able to edit it as well as have an internal, digital copy for our records instead of having lots of paper floating around (i know this is also doable using security that disallows the client certain editing privileges, but printing to a pdf is much quicker and more efficient, and the pdf security isn't really that secure at its best).
    in any case, i came across this gem of a post here on the support forums that installs another option from the PDF drop down on the bottom left of the print dialog menu that reads Save As Adobe PDF and is supposed to do exactly what i am trying to get it to do...print to a pdf file from adobe reader.
    http://kb2.adobe.com/cps/509/cpsid_50981.html    
    once i updated to acrobat 9.2 (as the link above suggests 9.1), however, the Save As Adobe PDF does appear in the print dialog menu, but it still gives me the same error that acrobat 8 - 9 gave me while using Snow Leopard — Saving a PDF file when printing is not supported. Instead, choose File > Save — and as i've already explained, you can't save an edited pdf form in reader (as i am the only one in the office with acrobat) and still keep the fields as you've entered them in. the only work around is to print to a pdf but is apparently having some recent problems.
    using acrobat, however, i know that i can save the editable pdf as a new file with the fields customized as i have left them, but it still saves it as an editable pdf and the print to a pdf option still remains the best option...that way we have digital copies internally that are uneditable that can be printed at any time or emailed to the client.
    how can i do print to a pdf, based on what i've written above, using snow leopard and acrobat and reader?

    A simple way is to flatten the form fields, which converts the field appearances to regular page contents. You can do this with JavaScript or PDF Optimizer (Advanced > PDF Optimizer > Discard Objects > Flatten form fields). A very nice script that adds a custom menu item can be found here: http://www.uvsar.com/projects/acrobat/flattener/

  • I am running Vista and Windows Mail, I can not open PDF files when in Windows Mail, I must save to Desktop first, this has changes recently and I do not know why or how to fix

    I am running Vista and Windows Mail, I can not open PDF files when in Windows Mail, I must save to Desktop first, this has changes recently and I do not know why or how to fix.
    Why after 6 year's this has changed?
    I would like to open PDF's straight from Window Mail.

    Good day Jeff.
    I am running most current Adobe Reader X.
    Tks Mark

  • Saving a PDF file when printing is not supported. Instead, choose File Save.

    I am using Mountain Lion (10.8.2) and I was using Adobe Reader version 9. In the past, I've always been able to print to file using the File -> Print dialogue but all of a sudden it stopped working. I read somewhere that installing the latest version of Adobe Reader (version 11) would remove the old printer, so I did so. It took me about an hour on version 11 to even find the pdf print to file option, but I am getting the same message. For what it's worth, when I try print to file from Microsoft Word, I have no problem. I have no idea why things changed all of a sudden, but does anyone have any idea how I can get this working again?

    I checked with Adobe.  No luck. 
    Allow me to clarify my problem: 
    I have Adobe Reader XI. I also use a Mac--imac and a MacBook Pro.   My adobe was updated on 12/24.  Prior to that point, I could open my print dialogue box and there was a PDF tab on the bottom left.  In the drop down menu there were many choices, including but not limited to Open in PDF Preview, Print PDF, Save PDF, email PDF.  If I selected one page of 30 pages from a document saved in Adobe, I could extract just that one page and save it or email it, without having to send the entire document.   After the update, when I open a PDF file using ADOBE READER XI, and then open the print dialogue box, and follow those same steps, I get the message "Saving a PDF file when printing is not supported. Instead, choose File > Save."   My question is why is this feature now unavailable and is there a way to fix it? 
    The answer I got from Adobe was that Adobe never had this function, so it must have been via my print or preview programs..which are apple.  Does anyone have any thoughts?
    Thank you.
    https://forums.adobe.com/message/7124567 

  • Saving a PDF file when printing is not supported.

    Hi Guys,
    I upgrade from leopard to snow and now I don't have the possibility anymore to to print PDF as a PDF.
    Before I was going to print and then choose save as a pdf and everything ok.
    Now after the upgrade to snow every time that I am going to print a pdf from a pdf (acrobat 9 and X) I received this msg "Saving a PDF file when printing is not supported. Instead, choose File > Save "
    Why that happened ? how can I fix it?
    The thing is that I have a pdf form (contract) that I have to fill up and print it as a pdf.
    Now I can't do that I can save only the form with the fields unlock.
    thanks you in advance for your help.
    Xoxo
    Fotis

    Ah.. this is so annoying filled in a long form.. which doesn't allow saving.. I assumed as normal with this type of form I could print to PDF and at least get a electronic copy.. but no, I made the mistake of installing Adobe Reader.. and it has screwed up the print options.. when I try to save as PDF from the print menu I get the helpful suggestion
    "Saving a PDF file when printing is not supported. Instead, choose File > Save."
    When I do as suggested.. it helpfully tells me that it will only save a "blank form"..
    Adobe has badly messed up their reader.. I now need to print out and then scan this document to get the electronic copy I need.. I will be uninstalling promptly after this fiasco..

  • AcroPro9, snow leopard, "Saving a PDF file when printing is not supported"

    Hi,
    I have AcroPro9.1.3 (and 8 and 7 and Dreamweaver CS3, and probably other stuff too) on Snow Leopard (10.6.1).
    I've read about de-installing the Acrobat printer and using "save as Adobe PDF" from the PDF button on the print menu.  However, when I try this, I'm told "Saving a PDF file when printing is not supported".  Note that this is AcroPro9, not AcroReader.  I get the same message when I try any of the other options under the PDF menu on the printer menu in Acrobat.  In other applications, tho, (eg powerpoint), the PDF button works fine.
    Before the upgrade, the PDF button on the print menu didn't work either (same message), so I used the Adobe printer, but now I can't.  I had always assumed that AcroPro was stopping me from using Apple's PDF generator in favour of the Adobe one.  But maybe some of my settings are wrong.
    I now cannot print to PDF from Acrobat.  Help.  There are 120 fourth year software engineering students who will appreciate any help I get, as I can then post my recent lecture notes for them.
    (What I really want to do is to take my powerpoint slides and print 4-up versions directly.  But the PPT idea of 4up wastes a lot of space, so I generate 1up PDF, and the 4up PDF from that using Acrobat.  At least, I used to.  It was so much easier in the old days with Latex and psnup ...)
    -- Mike G.

    My current solution is to print from Preview instead (which will let me use the Adobe print facility, unlike Acrobat itself).
    In fact, I pretty much have no need for Acrobat at the moment.
    Adobe and Apple between them seem to have some real problems with Snow Leopard.  I can't get Dreamweaver to run anymore without immediately crashing (yes I looked through the help forums, deleted settings, etc etc).  So I'm now looking for a replacement tool for Dreamweaver and will likely use that from now on.
    Adobe is not looking very good to me at the moment.  YMMV.
    -- Mike

  • Message error: "Saving a PDF file when printing is not supported. Instead, choose File Save."

    I have 2 problems creating a .ps file.
    As i know, there are 2 ways of creating a Postcript file from a PDF.
    The first is from the Print monitor. I go through menu File/Page Setup i give the exact dimensions from my spreaded pages and after that i go to Print and when this window opens,
    i go down and left and i open the pop-up menu on"PDF" and i choose "Save PDF as Postscript"
    There is where i get the above error message :
    "Saving a PDF file when printing is not supported. Instead, choose File > Save."
    And the second scenario, i get an equal problem.
    If i go to Page setup and give the right dimensions of my spreaded document, after that i go to the File/Save as command, there is choose from the bottom pop-up menu, the option at Format: Postscript
    If i do that i get the following message:
    "The document could not be saved. An internal error occured."
    What is wrong with all this?
    Can anyone help me out?
    System preferences.
    Mac OS X 10.4.11
    Acrobat professional 8.1.2
    Thank you

    Jon Bessant asked:
    "Does this occur on every PDF file? The internal error message that is ..."
    Yes, it happens on every PDF

  • How do i Restore Preview as my default viewer when using Safari,seems adobe has hi jacked Safari,if i uninstall adobe safari will not open any pdf files.

    How do i restore Preview as my default viewer.
    Seems adobe has hi-jacked Safari and and opens using abobe not preview.
    Have uninstalled adobe but safari then will not display any pdf files.
    Preview still works fine to view existing downloaded files.

    Niac --
    What kind of files?  PDFs?  or Others as well?
    If you want Preview to open all PDFs, then find a PDF on your HD.
    Highlight it, and then press the Apple/Comand key along with th letter " i " key.
    When the window comes up, look down to the "Open with" line, and change it from Adobe to Preview.
    Then look slightly below, and select "Change All."
    Now, all PDFs should open with Preview.

  • It seems like Illustrator may not consistantly be updating the embedded pdf file when we re-save..........

    It seems like Illustrator may not consistently be updating the embedded pdf file when re-saving, even if the embedded illustrator file does. We are seeing a number of issues which seem to suggest this is going on..... I have a file I might be able to share with adobe's developers to really look at this problem. In short this file does not have a client change when viewed in reader or output through Photoshop image processor to generate raster copies, yet when we open the file we see the client changes. I would expect this to be a huge issue..... I have told my team to perform a save-as from now on to avoid what I think is going on-it seems to work.....
    We are using Illustrator  CS5.5 (15.1.0)

    Post Author: fyz
    CA Forum: Exporting
    Hi,
    I think your pdf file is probably damaged. There is a tool called Advanced PDF Repair. I have used it to repair many corrupt PDF files successfully. Its homepage is http://www.datanumen.com/apdfr/  Maybe you can have a try.
    Alan

  • "this is not a valid PDF file" message when creating a new document?

    Every time i try and open a new document I get a message that says this is not a valid PDF file?
    Has anyone else recieved this message?

    Sorry, I am out of ideas. Unless anyone else can help I suggest you need to contact support directly. It’s usually possible to start a live chat, if an Adobe agent is free, and often to get problems fixed right away.
    To get help now click here for product support

  • Parameter issue - report not generating any pdf files

    Hi All,
    I'm trying to run a report which generates pdf files. Is there any limitation on the parameter string size? For one of the parameter values - '11F EA Accept nonhonor ASnSOMnSON_20091201090150846' the report is not generating any pdf files. I assumed the reason is of the keyword 'AS' in it and created another parameter value - '11F EA Accept nonhonor AnS-SOM-SON_20091202074331997', but it is also not generating any pdf files. I get this message from Adobe Reader " There was an error opening this document. This file cannot be opened because it has no pages. " The report is working normally when i hardcode the same parameter values into the logic. Any suggestions on this?
    Thanks.
    Edited by: user1049091 on Dec 2, 2009 9:17 AM
    Edited by: user1049091 on Dec 2, 2009 12:37 PM

    Tim,
    That report is working normally for all the parameter values, except this one. It is not working only if i pass the value - ''11F EA Accept nonhonor ASnSOMnSON_20091201090150846' as a parameter. It is generating the pdf files when i hardcode the same value into sql query logic in the data template, instead of passing it as a parameter. Please advise.
    Thanks.

  • Why can't I print out a PDF file when I am on Firefox? It takes me to Preview to print instead of staying on Firefox.

    When I go to a website that has a PDF file and try to print it, it sends me to Preview and when I try to print, the computer freezes up. This does not happen on Safari. Why can't I print a PDF file when I am on Firefox?

    To print a PDF, you need to use the print command from the PDF reader plugin instead of firefox's one. If there is no icons bar in the plugin, try right-click on a page from the pdf -> Print.

  • I can not print a pdf file that was sent in an email.  I get the error message that adobe could not

    I can not print a pdf file that was sent in an email.  I get an adobe error message that it can not print with an ok to check and when i do I get another adobe error message that says I did not select a page to print. I have downloaded the latest adobe download.  I forwarded the email to my husband and he printed the document just fine.

    This first question which comes to mind is how do you display the pdf file in the browser?
    For this the browser uses a plug in (e.g. adobe reader) which already has the ability to print the pdf file. Depending on the version of your plug in, printing is started differently.
    Timo
    Ps: which jdev version do you use?

  • Document is not a valid PDF file

    Hi,
    I need help! Iøm trying to upload a visa paper using Adobe-Reader XI and when I upload, it keep saying "document is not a valid PDF file" - what to do now? Maliha

    Are you sure that the document is a valid PDF file? Can you open it with Reader?

Maybe you are looking for

  • Partitioning travels (and Happy Birthday to me!)

    Next to my avatar, I note that I signed up here 5 years ago today. Not as long as I've been sober,    but still a milestone. I'm quite sure my first Arch install was 0.4...'Voodoo'? The first Linux distro I touched that showed promise of one day "bei

  • Itunes not starting on computer

    I have installed and uninstalled iTunes on my PC numerous times but it will not open.  I have removed the hidden .sicd files and it still won't begin.  I have Windows XP and Google Chrome.  Getting very frustrated, please help in lay man's terms for

  • Where did it go?

    New to mac from xp pc. Followed the instructions to move my files from from xp pc iTunes to mac iTunes from here: http://support.apple.com/kb/HT1329 None of my music nor audio books showed up in iTunes. I opened the Finder, selected 'me' under Places

  • Tables for Partial payments in FI

    Hi all, what are the database tables capturing partial payments in finance?? Thanks pabi

  • Null Pointer Exception on stmt = conn.prepareStatement( query );

    I configured the Tomcat 5.0.27 for using the connection pool feature and connecting to the Oracle. I am testing if I did the configuration correctly. Therefore, I try to retrieve some data from a table. I got the 'Null Pointer Exception" when executi