Problem while generating hindi pdfs

Hi,
This is Dasaradh. I have one problem while generating pdfs in HIndi. Here i have used two properties files, one is English and another one is Hindhi. If the user selects English PDF is generates Suceesfully. But if the user selects hindhi then pdf is generated but in that pdf all the charcaters are in diferent format but not in hindi.Actually my hindhi properties file and that pdfgerneration jsp both are in UTF-8 format. Here i have used PDFWriter class for generating pdfs.
Can any one pls help for generating the hindhi pdfs.
Thanking You,
Dasaradh.P

Make sure that you use the correct and the same encoding thoroughout the complete process.
1) Save the propertiesfile with in that encoding. Even the most simplest texteditor (notepad) offers you an option list of charset encodings to be used during 'Save As'.
2) Read values from the propertiesfile with that encoding. Use a Reader where you specify the encoding in the constructor. Otherwise either the platform's default encoding (e.g. CP1252 in Windows) or the API's default encoding (e.g. ISO 8859-1 in java.util.Properties) will be used.
3) Display the values with that encoding. Specify the charset encoding in a <meta> tag in the HTML head.
A must-read: [http://www.joelonsoftware.com/articles/Unicode.html].

Similar Messages

  • Problem while generating Encrypted PDF in batch

    Hi PPl
    I am generating encrypted PDF in batch. I have one requirement to generate about 1 lakh PDFs.
    But when i start my batch initially it works fine but after generating round about 25 PDF my program get
    stuck at Document.copyToFile method and after that it again generates around 5-6 PDF and stops for a while
    at the same place.
    I have tried the same program to generate PDF without Encryption and it works very fine.
    Guys i need your help to solve this issue.
    Waiting for your valuable inputs.
    Thanks

    Moved to the Java Development - Crystal Reports forum.
    Ludek

  • ERROR WHILE GENERATING THE PDF

    HI gurus,
    We are trying to publish BI reports in the Portal server as Iviews.
    In the portal system, when I am clicking the PRINT VERSION button for the
    CO&#61664; cost center (area): Plan/actual: Quarterly iview, it’s giving the PDF file,
    that’s well and good.
    <b>But when if I am doing the same thing for other iviews, for example: say the  iview (CO&#61664;cost center range: Transaction Drill-down).
    I am getting the “ERROR WHILE GENERATING THE PDF”</b>
    The question is : <i>it’s working for some standard iviews and giving error message to other std. iviews.</i>
    Please suggest how to resolve this issue.
    Regards,
    Prasad

    Dear Prasad,
    Did you resolve your problem, I have the similar one:
    I need to print report made in BEx Report Designer and executed on Portal, but when I press Print Version button I am getting next message:
    Error while generating PDF
    Any information is much appreciated
    Thanks in advance and best regards
    Vladimir

  • Problem while compressing a PDF

    Hi,
    I am facing a problem while compressing a PDF. The requirement is to merge lot of PDF into one. But when we merge the file the size of the PDF becomes huge. It can not be sent as an attachment in an email. We also don't want to ZIP the file. Any help is welcome.
    Thanks,

    Thanks a lot Satyajit,
    I have already gone through the post. I can not change the existing forms. I can compress one form to the least I can but when I merge 500 of such forms then the size becomes huge. I need to compress the "merged" big file, not the single form. My individual forms are already very small in size.
    Regards

  • IS- Retail- problem while generating delivery in WF30

    Hi Guys,
    I do have problem while generating deliveries after adjusting the stocks to stores and external customers.
    T.Code WF30- Merchandise Distribution for CD/FT process
    Scenario :!from DC to Stores process (1)
    I am getting an error called for stores is "*shipping Data not Found for item 10,20 and 30" (using one article and 3 stores)*
    Another scenario :2 from DC to external Customer(2)
    I am getting an error called "No deliveries are generated"
    (using one article and 2 customer)
    shipping point determination was done in OVL2,
    Picking area determination has done with few settings( if anybody guides what and where all the settings to be checked) I given Storage conditions in Article MD, entered Sto loc in Storage loc Deter and condition at IMG>LE>Shipping>Picking
    Is it problem in Allocation Table Item category level for second one ?
    for both scenarios i am using Allocation Table Item category AAFA
    In AAFA,(Alloc Item Cate) SD Type is ZZTA and delivery type is not maintined..(what are the entries should be in the Alloc Tab Item Cat).
    but in ZZTA sales order doc type(v0v8) Delivery type is LF
    Plz help on this..
    regards
    Harish

    Hi guys,
    I got the answer and i am closing this thread.
    Harish

  • Problems while generating the proxy definition

    Hi Experts,
       I am facing the error " Problems while generating the Proxy Definition! ", when creating the proxy definition, for a specific URL.
    The URL to call the webservice is similar to "http://www3.XYZ.com/_vti_bin/newswebservice.asmx?WSDL" and is returning the appropriate XML code. Moreover accessing the webservice through browser, returns the expected response, too.
    From the NWDS side, where we are creating the proxy, again, everything is fine, because we have already created two proxy definitions, in similar fashion, but for different WSDL links.
    The only difference we are encountering is like, earlier the links were of type "www.abc.com/..." while the new URL is of type "www3.xyz.com/..." type. I hope this load balancing technique has hardly to do anything with it.
    Any pointers for possible reasons and solutions will be of much help.
    Regards,
    Akhil Mishra

    If you are consuming a web service in NWDS look below document and check if you are not missing any step:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0cf9e42-ccb0-2c10-d0a4-f5aa8a79e19a

  • Problems while generating the report........

    Hi Experts,
    I have genereated a new report on purchasing data, I am facing bellow problems while generating the report,
    1) In rows one Invoice doc num is there, I am not getting result row for this object, I have given NEVER in supress result rows in properties of that object, but it's not showing.....how can i get result row for this object?
    2) I am getting '#' for the blank values, How to remove these '#"s
    Please help to solve my above problems,
    Helpful answer will be awarded with points,
    Thanks in advance,
    Venkat.

    Hi,
    1) If you have only Invoice Num it does not shows the result Row .
    2)If you display the characteristics as Key u will get as '#'. You can select as Text,then it will show 'Not Assigned'. (Hope you know that when the Values not updated from Infoprovider then # appears at output )
    Hope it helps

  • Getting error in Portal "Error while generating the PDF" for BI Report

    Hi Experts,
    we are gettign the error while trying to generate the PDF file from the Reports.
    Earlier it was working fine Adobe Reader 8 , currently we have upgrated Adobe Reader 9 in our system.
    After this upggradation browser "*Failed to open PDF in Browser"*
    Could you please suggest me how to diagnostic the error. Do we need to configre something in the Portal or in the Backend BI system for this.
    Please suggest me the needful on this?
    thanks
    Narpal

    Hello,
    i am facing the same problem and found help by 925741:
    "Error while generating PDF"
    There is no more information available when clicking on the error.
    Used Software:
    Adobe 8
    SAP_ABA             700       0018      SAPKA70018     Cross-Application Component
    SAP_BASIS           700       0018      SAPKB70018     SAP Basis Component
    SAP_BW     700       0020     SAPKW70020     SAP NetWeaver BI 7.0
    PI_BASIS       2005_1_70 0018      SAPKIPYJ7I       PI_BASIS 2005_1_700   
    BI_CONT     703     0013     SAPKIBIIQ3     Business Intelligence Content
    Any other ideas?
    Thanks,
    Rainer
    Edited by: Rainer SIGG on Mar 9, 2009 4:41 PM
    Edited by: Rainer SIGG on Mar 9, 2009 5:27 PM
    Edited by: Rainer SIGG on Mar 9, 2009 5:42 PM

  • Report Builder 10 Crashing while generating to pdf

    I can get a report to show all the pages in previewer mode.
    However, when attempting to generate to pdf, report builder crashes at random times. Not at just one page, but whenever it feels like it.
    Report is 4,000 pages, but I've ran 15k page to pdf before. And it is NOT the report, it crashes on all reports.
    We've had some recent windows security updates pused to us recently, but that is it as far as system changes go.
    Environment:
    Win XP, SP3
    Report Builder 10.1.2.0.2
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production

    Report Builder 10.1.2.0.2That is the base version of Developer Suite that you can download on OTN. I would at least start with upgrading to the latest patch, especially since you connect to an 11g database.
    Another thing: do you have this problem in Reports Builder, or on the application server? Latter case: check your AS version against the certification matrix too.
    Edited by: InoL on Jan 27, 2011 11:37 AM

  • Problem while opening the PDF

    Hi All,
    Iam having an issue while opening the PDF-Attachment in which iam sending it as attachment to the mail.While opening the PDF iam getting the error that "Aodbe Reader could not open the document because it is either not a supported file type or because the file has been damaged(for example,it was sent as an email attachment and was'nt correctly decoded)".
    The function-module "SO_NEW_DOCUMENT_ATT_SEND_API1" is getting use to send the attachment.
    First iam converting the internal table data into PDF and then am sending the mail with PDF-attchment.
    Thanks,
    Asmitha.

    Even i had a smilar problem. The reason is perhaps the data in internal table doesnt get converted into PDF corectly. In my case i had to convert into PDF and download on local machine. Attching below code for it.Maybe u can get pointers to your problem.
      REPORT sy-repid
           NO STANDARD PAGE HEADING
           LINE-COUNT 74
           LINE-SIZE  200
           MESSAGE-ID zz.
      PARAMETERS : pcfile LIKE rlgrap-filename LOWER CASE.
      DATA :textlines LIKE tline OCCURS 100 WITH HEADER LINE.
      DATA otf LIKE itcoo OCCURS 1000 WITH HEADER LINE.
      DATA it_lines LIKE tline OCCURS 100 WITH HEADER LINE.
      DATA options LIKE itcpo.
      DATA header LIKE thead.
      DATA result LIKE itcpp.
      DATA: bin_filesize TYPE i.
      DATA: filesize TYPE i,
      convcount TYPE i,
      cancel(1).
      AT SELECTION-SCREEN ON VALUE-REQUEST FOR pcfile.
        CALL FUNCTION 'WS_FILENAME_GET'
          EXPORTING
            mask     = ',*.*,*.*.'
          IMPORTING
            filename = pcfile
          EXCEPTIONS
            OTHERS   = 1.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      START-OF-SELECTION.
        DATA : BEGIN OF itab OCCURS 0,
                matnr TYPE mara-matnr,
                END OF itab.
        SELECT matnr FROM mara UP TO 10 ROWS INTO TABLE itab.
        LOOP AT itab.
          textlines-tdformat = '*'.
          textlines-tdline = itab-matnr.       APPEND textlines.
        ENDLOOP.
        options-tdgetotf = 'X'.
        options-tdnoprev = 'X'.
        CALL FUNCTION 'PRINT_TEXT'
          EXPORTING
            dialog                   = ' '
            header                   = header
            OPTIONS                  = options
          IMPORTING
            RESULT                   = RESULT
          tables
            lines                    = textlines
            otfdata                  = otf
          EXCEPTIONS
            canceled                 = 1
            device                   = 2
            form                     = 3
            OPTIONS                  = 4
            unclosed                 = 5
            unknown                  = 6
            format                   = 7
            textformat               = 8
            communication            = 9
            bad_pageformat_for_print = 10
            OTHERS                   = 11.
        IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL FUNCTION 'CONVERT_OTF'
          EXPORTING
            format                = 'PDF'
          IMPORTING
            bin_filesize          = filesize
          TABLES
            otf                   = otf
            lines                 = it_lines
          EXCEPTIONS
            err_conv_not_possible = 1
            err_bad_otf           = 2.
        DATA : g_file TYPE string.
        g_file = pcfile.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            bin_filesize            = bin_filesize
            filename                = g_file
            filetype                = 'BIN'
          TABLES
            data_tab                = it_lines
          EXCEPTIONS
            file_write_error        = 1
            no_batch                = 2
            gui_refuse_filetransfer = 3
            invalid_type            = 4
            no_authority            = 5
            unknown_error           = 6.
    Regards,
    Mansi

  • Getting "SYSTEM ERROR" while generating a PDF in a Workflow method.

    Dear All,
    I'm getting a "SYSTEM ERROR" when I'm calling the below function module in a Workflow BO Method.
    CALL FUNCTION wa_funcnm
       EXPORTING
         /1bcdwb/docparams  = fp_docparams
         invoice                     = invoice
       IMPORTING
         /1bcdwb/formoutput = fp_formoutput
       EXCEPTIONS
         usage_error        = 1
         system_error       = 2
         internal_error     = 3
         OTHERS             = 4.
    The aim is to generate the PDF and store it in DMS. Please let me know, if I'm going wrong somewhere. Any kind of inputs would be sincerely appreciated.
    Regards,
    Tushar.

    Hi Tushar
    You need to the following parameters when calling FM. Background WF process cannot handle dailog.
    fp_outputparams-nodialog = 'X'.
    fp_outputparams-getpdf   = 'X'.
    Refer to Thread below
    Creating Attachments to Work Items or to User Decisions in Workflows
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
    i_name     = l_formname
        IMPORTING
    e_funcname = l_fm_name.
    *   E_INTERFACE_TYPE           =
    fp_outputparams-nodialog = 'X'.
    fp_outputparams-getpdf   = 'X'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel          = 1
    usage_error     = 2
          system_error    = 3
    internal_error  = 4
    OTHERS          = 5.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN OTHERS.
    ENDCASE. " CASE sy-subrc
      ENDIF.
    fp_docparams-langu = 'X'.
    fp_docparams-country = 'US'.
      fp_docparams-fillable = 'X'.
      CALL FUNCTION l_fm_name
        EXPORTING
    /1bcdwb/docparams  = fp_docparams
    emp_info           = fs_per_info
        IMPORTING
    /1BCDWB/FORMOUTPUT = FP_FORMOUTPUT
    EXCEPTIONS
    usage_error        = 1
          system_error       = 2
    internal_error     = 3
    OTHERS             = 4.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN OTHERS.
    ENDCASE. " CASE sy-subrc
      ENDIF.                               " IF sy-subrc <> 0
      CALL FUNCTION 'FP_JOB_CLOSE'
    *   IMPORTING
    * E_RESULT             = result
       EXCEPTIONS
    usage_error          = 1
    system_error         = 2
    internal_error       = 3
    OTHERS               = 4
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN OTHERS.
    ENDCASE. " CASE sy-subrc
      ENDIF.                               " IF sy-subrc <> 0.
    ENDFORM.                    " GET_FUNCTION_MODULE
    *& Form  CONVERT_PDF_BINARY
    FORM CONVERT_PDF_BINARY .
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
    BUFFER                = FP_FORMOUTPUT-pdf
    *   APPEND_TO_TABLE       = ' '
    * IMPORTING
    * OUTPUT_LENGTH         =
        TABLES
    BINARY_TAB            = t_att_content_hex .
    ENDFORM.                    " CONVERT_PDF_BINARY
    Regards
    Sandy

  • Problem while exporting to PDF with japanese character in Crystal Report X1

    Hi,
    I am using Crystal report X1 with classic ASP on a Windows 2003 Enterprise Server, SP 2. In my application, I have to export the report into PDF, CSV, DOC formats. I am have Japanese strings in the report. While exporting to PDF, empty boxes has displayed in the place of Japanese string and in CSV file, question mark has been displayed instead of Japanese string. But the Doc file is exported correctly. I have not installed any language support software either in server or in client machine. I have used MS Gothic and Arial Unicode MS fonts for the text-objects which has Japanese strings.
    Please give me a solution so that I will get PDF file with Japanese strings instead of empty box or question mark.
    Do I need to install any language support pack software?
    Thanks in advance.
    Regards,
    Manju

    Hi Don,
    Thank You for your reply. I have resolved the issue of exporting to pdf from crystal report X1 having Japanese data after installing the language pack.
    But when I am exporting to CSV or TXT, i am getting ??? instead of Japanese characters. I have tried "export" through crystal report designer and got ??? instead of Japanese.
    The Crystal report version I am using is Crystal report X1  11.0.0.1282
    Crystal Report Desinger is installed in Windows Xp machine
    Font set for Text object is Arial Unicode MS, MS PMincho, MS PGothic
    Does the Crystal report X1 11.0.0.1282 has the UTF-8 support for CVS / txt
    Please provide me a solution
    Thanks in advance,
    Regards,
    Manju

  • Problem while generating classification data-sources

    Hi ,
    I have one classification data-source 1CL_OVEN001 which is based on vendor master data and class type 10.  I tried to added one field in this data-source . while generating data-source, I got some error like " Extractor can not be generated".
    Then I searched on SAP site and got one note 1946309 . When I implemented this note and tried to generated data-source. Now I am getting another error.
    "EXTRACT STRUCTURE IS NOT PERMITTED"
    I have tried with several note  but getting same error.
    Please help.
    Thanks in advance
    Devesh Varshney

    Hi,
    What field you have added, if it is Keyfigure then make sure that you have added its unit.
    -Sriram

  • Problem while generating PDF using iText

    Hi:
    I have generated PDF using iText, where i have written all code in sequential flow.
    <code>
    com.lowagie.text.Document document = new com.lowagie.text.Document(PageSize.A4, 55, 5, 20, 20);
    OutputStream outputstream = response.getOutputStream();
    PdfWriter.getInstance(document,outputstream);
    </code>
    And i have added all fields in the document.
    But my problem is how to display total pagecount on all pages e.g.1\20 (because i have generated PDF sequentially)
    Also i want to add watermark on all pages.
    So, can any body help me to solve this problem?
    Thank You,
    Balaji

    sabre150 wrote:
    Maybe http://itext-general.2136553.n4.nabble.com/
    Nice pron link in there :/

  • Indesign CS3 crash while generating an PDF or deleting an index entry

    Indesign crashes when I will starting the PDF export. This happens in all Indesign documents which are converted from CS2 and with index entries. So I want to delete the index but Indesign crashes while deleting too. I tried to convert the files in .indx files but nothing changes. Indesign is still crashing.
    Indesign 5.0.2
    Mac OS X 10.5.3
    MacPro Identifier 3,1
    RAM: 4GB

    Hi. Im having the same problems and tried everything. Indesign crashes not just on Exporting, but also Import and Save As. It mostly works with no problem for days and then all the sudden crashes and cant fix it, then in about an hour starts working again, with the exact same document. It seems to me like the software cant find the path it created with the document. For example, if I press just SAVE, its saves with no problem, but when I choose SAVE AS, Indesign crashes after opening the communication window.
    I still have PowerBook, not MacBook Pro, and OS X 10.5.3, so I figured my computer cant handle the new system and CS3. Although Im not having any problems with Photoshop nor other CS3 software, just indesign.
    I would really appreciate some advice or response.

Maybe you are looking for

  • How can I connect my G5 iMac to Telefonica ADSL?

    I just moved to Spain. The ADSL connection offered by telefonica seems to be set up with just PCs in mind. I do not know how I can connect my iMAc and my extreme Airport Base Station to that ADSL system. Do I need any special configuration in the Bas

  • Unable to import IDOC metadata from 4.6C based R/3 system

    As part of a project we are trying to import IDOC interface definition into XI3.0 from our 4.6C based R/3 System. I have gone through the pre-requisites mentioned at http://help.sap.com/saphelp_nw04/helpdata/en/2b/a48f3c685bc358e10000000a11405a/frame

  • CiscoWorks LMS 3.2 device driver discovery problem

    Hi, We have many devices Cisco 3825 on our network. For some of them, the device driver is correctly discovered but not for others. - Devices correctly discovered : cisco3825 : Cisco IOS Software, 3800 Software (C3825-ADVSECURITYK9-M), Version 12.4(5

  • DUNs number

    Hi Gurus, How to maintain DUNs number in vendor master?Is there any field to key in the DUNs no.? Besides, Is there any chance to upload to SAP? Many thanks in advance.

  • Documentation for the convert servlet

    Does anyone know where to find the documentation for the /xmlpserver/convert servlet?