Encoding Needed for polish content in dynamic pdf

I am creating dynamic pdf using pdfwriter and java in cq5. I am not able to get polish language content in pdf.
What encoding should i use? Here my code: 
XMLWorkerHelper.getInstance().parseXHtml(
  writer,
  document,
  new ByteArrayInputStream(htmlBufferForPDF.toString().getBytes("ISO-8859-2")));
But it doesn't work out. I used "UTF-8" and "ISO-8859-1". Nothing is working out.
Please post suggestions.

This is the forum for Adobe Acrobat. I recommend you find a support forum or mailing list for iTextPDF.
Never assume that software which is able to show latin 1 characters will be able to show any other character set. The software must be much more powerful to do that.

Similar Messages

  • Problems with string encoding - need the text content in char* format.

    The problem is non ASCII-characters, which comes out as some sort of unicode I need to desipher.
    Here's what I got:
    A text frame object with the TextString "Agnartjørna"
    I get the text content of this object into an ai::UnicodeString the following way:
    AIErr
    VMGetTextOfTextArt( AIArtHandle textArt, ai::UnicodeString &ucStr)
        ASUnicode *textBuffer = NULL;
        AITRY {
            TextFrameRef ateTextRef;
            AIX( sAITextFrame->GetATETextFrame( textArt, &ateTextRef));
            ATE::ITextFrame ateText( ateTextRef);
            ATE::ITextRange ateRange = ateText.GetTextRange( true);
            ASInt32 textLen = ateRange.GetSize();
            AIX( sSPBlocks->AllocateBlock( (textLen+2) * sizeof( ASUnicode), nil, (void**) &textBuffer));
            ateRange.GetContents( textBuffer, (ASInt32) textLen+1);
            /* trim off trailing newlines */
            if ((textBuffer[textLen] == '\n') || (textBuffer[textLen] == '\r'))
                 textBuffer[textLen] = 0;
            ucStr.clear();
            ucStr.append( ai::UnicodeString( textBuffer, textLen));
            sSPBlocks->FreeBlock( textBuffer);
            textBuffer = NULL;
           AIRETURN;
        AICATCH {
            if (textBuffer) sSPBlocks->FreeBlock( textBuffer);
           AIPROPAGATE;
    Now, the next step is to convert it into a form that I can use to call regexp.
    Baiscally, I want to detect the ending "tjørna" (meaning small lake) on a map label, and apply a standard abbevriation "tj^a" (with "a" superscripted).
    So the problem is to obtain the regexp pattern and the text content in same encoding.  And since the regexp library is old *char based, I would like to convert the text content in to plain old *char.
    Hence the following code:
    static AIErr
    VMAbbreviateTextArt( AIArtHandle textArt,
                             vmTextAbbrevEffectParams *params)
        AITRY {
        /* first obtain the text contents of the textArt */
           ai::UnicodeString ucText;
          const int kTextLen = 256;
          char textContent[kTextLen];
          AIX( VMGetTextOfTextArt( textArt, ucText));
          ucText.as_Roman( textContent, kTextLen);
    But textContent now has the value "Agnartj\xbfnna"  (According to XCode),
    which will not get a match on the pattern "tj([øe][rn])na\\" (with  backslash matching the end of the string)
    Any other ways to convert the textContent to a plain *char string?

    Thank you very much, your method will work fine. with
    the "UTF-8" parameter the byte[].length is double,
    cause every valid byte is preceeded by an -62, but I
    will just filter the valid bytes into a new array.
    Thanks again,
    StefanActually what you need to do is to find the character encoding that your device expects, and then you can code your strings in Arabic.
    That's the way Java does things; Strings and char values are always in UNICODE (see www.unicode.org) (which means \u600 to \u6ff for arabic) and uses a specified character encoding when translating these to and from a byte stream.
    Each national character encoding has a name. Most of them are identical to ASCII for 0-127 and code their national characters in 128-255.
    Find the encoding name for your display and, odds are, the JRE has it in the library.
    BTW the character encoding ISO-8859-1 simply maps UNICODE characters 0-255 on to bytes.

  • Advice needed for converting AI file to PDF

    I'm working on some 11x17 page size illustrator files that are of aerial photo maps (with a legend).
    Can someone offer me some advice on how to best convert these files to pdfs and keep the photo quality high and keep the file size as low as I can get it??? I basically can convert it to a pdf but I don’t understand the compression settings section (assuming that’s what needs to be changed in order to accomplish this?).
    Thanks

    This is a trick I find works well.
    Just save it as a pdf and open in Acrobat, then (Acrobat X) go to tools and then Prepare for Web Publishing, use all the default settings.
    This should reduce the file as much as 1/3 the size sometimes even more.
    It has no effect on the qquality.

  • HT204053 2 ipads in home - 2 different Apple ID's needed for different content?

    If we have 2 I Pads in the house, do we need to have two different Apple ID's to keep content seperate on each device? Currently we have one Apple ID and some apps that I have put on my Ipod are appeariing on husband's IPad, I am getting an IPad so am wondering, do we need seperate ID's to prevent this problem.  If so, how do I create a new one?

    If you share an iCloud account with the same ID on multiple devices, any data you sync with the shared account such as contacts and calendars are merged, and all devices get the merged list.  To prevent this, you need to have different iCloud accounts with separate IDs (you can continue to share the same Apple ID for purchasing from the iTunes and app stores).
    To fix this decide which device(s) will be keeping the current iCloud account.  On the device(s) that will be changing accounts, if they have any photos in photo stream that are not in your camera roll or backed up somewhere else save these to the camera roll by opening the photo stream album in the thumbnail view, tapping Edit, then tap all the photos you want to save, tap Share and tap Save to Camera Roll. 
    Once this is done, on each device that is changing accounts go to Settings>iCloud, scroll to the bottom and tap Delete Account.  (This will only delete the account from this device, not from iCloud.  The device(s) that will be keeping the account will not be effected by this.)  When prompted about what to do with the iCloud data, be sure to select Keep On [iDevice].  Next, set up a new iCloud account using a different Apple ID (if you don't have one, tap Get a Free Apple ID at the bottom).  Then turn iCloud data syncing for contacts, etc. back to On, and when prompted about merging with iCloud, choose Merge.  This will upload the data to the new account.
    Finally, to un-merge the data in these accounts you will then have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the data you don't want (such as deleting the other person's contacts from your account, and vice versa).

  • Javascript needed for adding filenames to MULITPLE pdfs - thanks

    Hi there,
    Im familiar with batch processing and i’ve found some information on the filenames, but I cant really get this to work. I have multiple PDFs and i’d like to add the file name of each PDF to the bottom of each page for our printer. I know this requires javascript, and so far the only code that i was able to get work, was an actually javascript file that i inserted into the adobe folder creating a new button to “print with file name” this was great, but didn’t help with my batch of files.
    Thank you.

    And what code are you using?
    The code beside adding the button should have code to add a filed to the PDF pages and add the 'WillPrint" action. I have found some of this code is best done by using a function to perform the adding of a field and setting the will print action.

  • Dynamic pdf created in adobe 8 not working in Adobe reader 9

    Hi ,
    I designed dynamic pdf using Adobe 8 livecylce.
    I am able to generate the dynamic pdf with values filled in from the database in Adobe 8 reader,standard and professional versions.
    I recently installed Adobe 9 reader and when I try to generate the dynamic pdf , the pdf if generated but the values of the fields comes as null.
    Is dynamic pdfs created in 8 not compatable with adobe 9 reader? Do I need to redesign the documents in 9 again ?
    Please let me know, I designed a lot of pdf documents using 8 livecycle under the assumption that it is going to work in future versions.
    Thanks,
    Vidya

    Hi,
    I figured our there was a setting to enable/disable  Javascript which caused this issue.
    I was using javascript in the LC 8 for manipulations in the dynamic pdfs.
    I enabled the javascript and now it is working fine.
    Thanks,
    Vidya

  • Problems with dynamic PDF display in reader 8.1.0

    I have created a dynamic PDF Form having 30 text fields in a row. All these fields are bounded to XSD. The design is like, a row of fields display a single user informations. When I import a XML with 100 user informations, then my PDF crashes. If I import a XML with 50 user informations, then it works fine. Anything beyond that count causes the PDF to close automatically. I believe, its the number of fields which causes the problem. I may be wrong.
    I also needs to enter 100 user informations by adding rows one by one. The PDF becomes very slower when I add beyond 35th row. I'm using Livecycle designer 8.0 for designing dynamic PDFs and using Adobe reader 8.1.0 for viewing.
    Can anyone help me on this?

    Hi,
    I figured our there was a setting to enable/disable  Javascript which caused this issue.
    I was using javascript in the LC 8 for manipulations in the dynamic pdfs.
    I enabled the javascript and now it is working fine.
    Thanks,
    Vidya

  • Looking for a Content Server 4 Trainer asap.

    I have a need for a Content Server trainer in Colorado asap and would love some help.

    I can guide you ? But me in Islamabad, Pakistan.
    Thanks, Shafqat,
    [email protected]

  • Is Acrobat Pro right for us. We have an Employee Handbook that needs editing. Some is current pdf, some from an older version. Want to get all into one handbook, have the table of contents automatically adjust and link to specific pages from the ToC.

    Is Acrobat Pro right for us. We have an Employee Handbook that needs editing. Some is current pdf, some from an older version. Want to get all into one handbook, have the table of contents automatically adjust and link to specific pages from the ToC.

    You can download the trial version (http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html) to convert the PDF back to WORD if you do not have the original. The conversion may not be perfect, but it is typically better than starting from scratch. You may be lucky and get a good result. You might check the settings (in the save screen) to try retain format versus retain text flow. The format version can be a pain to edit since it creates a bunch of text boxes. The flow version may require you to reformat in WORD, but you likely would want to do that anyway.

  • I need import dvd content to compressor or FCP to re encode for web

    I need import dvd content to compressor or FCP to re encode for web
    Is there a short cut?
    When I tried, only the video went as the audio seems to be embedded. How can I encode a DVD to and Mpeg4 file with the audio?
    Thank you all in advance.

    Google MPEG Streamclip. It's free and works! This questions gets asked a lot. Take advantage of search when you can.

  • To view the full contents of this document, you need a later version of the PDF viewer

    I Have upgraded to the latest version available in the App Store so why am I still getting this message when I try to open up PDFs?
    To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade to the latest version of Adobe Reader from www.adobe.com/products/acrobat/readstep2.html For further support, go to www.adobe.com/support/products/acrreader.html

    Hi,
    It sounds like you have a special type of form called a "dynamic XFA form".
    Currently, Adobe Reader mobile products (Reader for iOS, Android, Windows Phone) do not support dynamic XFA forms that are authored with Adobe LiveCycle Designer.
    The message is displayed when a dynamic content is not supported by a PDF viewer.  As far as I know, no PDF viewers on iOS support dynamic XFA forms.
    Please use the desktop version of Adobe Reader on a Windows or Mac computer to view and fill out XFA forms.
    Sorry for the inconvenience.

  • Hi, on the link below, I need to open the "demande de visa de resident temporaire" but once I click on it it gives me the following message: " To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade  to the

    hi, on the link below, I need to open the "demande de visa de resident temporaire" but once I click on it it gives me the following message: " To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade  to the latest version of Adobe Reader from www.adobe.com/products/acrobat/readstep2.html  For further support, go to www.adobe.com/support/products/acrreader.html".
    the link is: http://www.cic.gc.ca/francais/information/demandes/visa.asp?countrySelect=RO#applications
    can someone please help me? I've tried installing everything as per the indication in the message but I still get that error message.

    update your adobe reader here, http://get.adobe.com/reader/
    untick unwanted tag-along ware.

  • Populating dynamic PDF Form Content

    I have a livecycle form I designed that I need to populate with data coming from ColdFusion. Easy enough except for the dynamic areas of my form. I have numerous subforms in my PDF where a user can add extra fields (or rows in a table) and then submit the form. The problem is that I don't know how to access the fields within the subform when there is more than one to populate them. Can't post a dump of the submitted form, but it flows like this:
    form1
         page_1_subform
              subform
                   subform
                        subform
                             array of text fields
    I can process this with no problems on the CF side, but when trying to populate the form I'm having problems. I have javascript in the form that will add enough instances of the fields, but it doesn't populate them.
    Any thoughts???

    Take a look at this blog entry how you can use xml to populate dynamic forms.
    http://www.supportobjective.com/blog/index.cfm/2010/5/27/ColdFusion-and-multirow-forms-ins ide-Dynamic-PDFs
    You might find a way using this approach.

  • Dynamic PDF's for Mobile Devices

    I have been converting my company's forms to dynamic pdf format using ES4 to facilitate completion and submission by our highly dispersed workforce.  These forms are unfortunately not accessible on the mobile devices our field employees typically use.  Can anyone suggest resources that a layman can use to learn about and utilize ES4's mobile forms and HTML5 capabilities?  All the information I have located on the Adobe website appears to be oriented to programmers or developers, and my (small) company does not have the financial resources to engage a consultant for this purpose.  Thanks in advance for your insights and suggestions.

    Hi,
    In short, what you're attempting to do can be very costly if you stick with the Adobe LiveCycle ES solution to render forms on mobile devices (via their mobile forms platform). Also, if you're not familiar with the technology, you'd definitely need  to engage a consultant in addition to purchasing the require server-side modules to render your forms in HTML5?
    Questions:
    1. What mobile devices are being used in the field?
    2. Do your forms absolutely need to be made dynamic, or could they be saved as "static" XFA, instead? If you're doing things like adding rows to tables, hiding/revealing subforms, etc. then yes, the forms would need be dynamic. But if your forms do not need to be dynamic and/or you can tweak the design logic so the form is rendered in a static layout, then using the forms on an iPad is possible via the app "PDF Expert". PDF Expert can read/render static XFA files HOWEVER there's no support for javascript in that format. On the Android side, the app "qPDF Notes" provides support for static XFA PDFs.
    On the other hand...if users are able to use a Windows PRO based tablet (i.e. something like the Surface Pro 2, or even something less expensive running Windows PRO - not RT), then you could install Adobe Reader or Acrobat and use the dynamic forms, as is, on those tablet...no need for HTML5 rendering.
    In either case, the solutions mentioned about would be far less expensive (and less complicated) to trying to using ES4 mobile forms.
    Hope this helps!

  • Is there an ADOBE plugin for MS Project 2010 to create Dynamic PDF files?

    I wonder if there exist any ADOBE plugin for MS Project 2010 to create Dynamic PDF files?

    We are not going to use form fields. An employee is going to create large projects in MS Project 2010 and want to share his projects with other employees. So the need is just a viewer. So I guess we need to check out all the third part MS Project Viewers which is out there. Thanks for your answers guys!

Maybe you are looking for