Title: RE: [iText-questions] setting Encoding

iText works without any problem in OS/390 and AS400. Did you try to open the generated pdf?

Best Regards,

Paulo Soares

    -----Original Message-----

    From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]

    Sent:   Tuesday, January 13, 2004 15:18

    To:     [EMAIL PROTECTED]

    Subject:        [iText-questions] setting Encoding

    My problem is different from Ujjwala Kadam(UTF support).

    I'm using iText in an OS/390 machine with WebSphere 4.01.

    When i try to generate an output from a PDF File, this is the result i have in the outputStream:

    INPUT:

     %PDF-1.3

    %����

    80 0 obj

    <<

    /Linearized 1

    /O 83

    /H [ 3683 604 ]

    /L 1427456

    /E 465503

    /N 4

    /T 1425738

    >>

    endobj

                                                         xref

    80 134

    0000000016 00000 n

    0000003029 00000 n

    OUTPUT:

    &�Ÿ

    ST�L?ߺ�ݰ?�”�ݰ€?%?”œ�/��€œ�€œ�€��Ÿ?>��^

    This is the code lines:

    PdfReader pdfReader = new PdfReader("/prova/prova.pdf");

    FileOutputStream streamFile = new FileOutputStream("/prova/output.pdf");

    PdfStamper pdfStamper = new PdfStamper(pdfReader, streamFile);

    AcroFields acroFields = pdfStamper.getAcroFields();

    Set     acroFieldsHashSet = acroFields.getFields().keySet();

    Iterator iter = acroFieldsHashSet.iterator();

    while (iter.hasNext()) {

    String iterRead = (String)iter.next();

    logger.info("letto da iter=="+iterRead);

    acroFields.setField(iterRead,"prova","prova");

    }

    pdfStamper.close();


    What can i do? Can u help me?

      Thanks

      Claudio


    -------------------------------------------------------

    This SF.net email is sponsored by: Perforce Software.

    Perforce is the Fast Software Configuration Management System offering

    advanced branching capabilities and atomic changes on 50+ platforms.

    Free Eval! http://www.perforce.com/perforce/loadprog.html

    _______________________________________________

    iText-questions mailing list

    [EMAIL PROTECTED]

    https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to