This was sent to my private mail address, not to the list. I'm 
forwarding this to the list because I don't have the time to look at it 
right now (and also because sending mail to private e-mail addresses is 
against the rules).

[email protected] wrote:
> i am using this code for generate pdf..... i make pdf in java (backend) after 
> that frontend (vb.net) uses this pdf to display ..... now pdf is open in 
> adobe reader version 7 (older) but not in version 9 in client machine.  
> 
>  public byte[] simplePdf() {
>     
>       Document document = new Document();
>       File file = null;
>       int fileByteLength = 0;
>       byte[] bytearray = null;
>       try{
>               file = new File("C:\\HelloWorld.pdf");
>               file.delete();
>               PdfWriter writer = PdfWriter.getInstance(document,new 
> FileOutputStream("C:\\HelloWorld.pdf"));
>       writer.setPdfVersion(PdfWriter.VERSION_1_7);
>               document.open();
>               document.add(new Paragraph("Moksha Digital Software Private 
> Limited"));
>               document.close();
>       }catch(DocumentException e){            
>       }catch(FileNotFoundException e){
>       }
>       try{
>               if ((!file.exists()) && (file.length() < 1)) {
>                       System.out.println("File Not Exist");
>               } else {
>                       FileInputStream finput = new FileInputStream(file);
>                       try {
>                               fileByteLength = finput.available();
>                               System.out.println("No of bytes in file " + 
> fileByteLength);
>                               bytearray = new byte[fileByteLength];
>                               finput.read(bytearray);                         
>                 
>                               finput.close();
>                       } catch (IOException e) {
>                       }
>               }
>       } catch (FileNotFoundException e) {
>       }
>       return bytearray;
>     }
> 1T3XT info wrote:
>> starmahrshi wrote:
>>> hello all..
>>>
>>> for generate pdf i am using jar iText-2.1.4 , java 1.6 , Adobe Reader 9 ,
>>> eclipse for server machine....
>>> now pdf is generating in server machine .. no problem ....server sending
>>> this pdf to client machine by byte array.. and client machine also save
>>> this
>>> pdf file .... but if client machine using adobe reader version 7, it
>>> displays ..... and for adobe reader version 8 or 9 this pdf is not
>>> open.........
>> Can you provide an example of such a PDF file?
>> One would expect it's the other way round.
>> Normally PDF is backwards compatible: if something works in an old Adobe 
>> Reader version, it should also work in a newer version.
>> -- 
>> This answer is provided by 1T3XT BVBA
>> http://www.1t3xt.com/ - http://www.1t3xt.info
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>> CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source code:
>> SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> iText-questions mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> Buy the iText book: http://www.1t3xt.com/docs/book.php
>>
>>
> Quoted from: 
> http://www.nabble.com/iText-Pdf-version-problem-tp22179597p22180497.html
> 
> 


-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to