• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to view a PDF content generated through

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

We are generating a PDF through java program(using itext) which will run in VMS System for few PDF's we are unable to see the content even though it shows some size on disk.

We are sending the PDF's thorugh mail using MAIL API.Then when we download the attcahment and see there are pages but unable to see the content please help me on this.

PFA sample PDF.

Java mail code looks like this

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it a proper PDF file, meaning - does it display correctly when viewed directly, without first being sent by mail? If you haven't tried that, that's where you should start.
 
satyanath puppala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf Dittmer,

Thanks for replying as i mentioned in the post it's generated in VMS System so we are not able to see PDF's there once it's mailed only we can see that .

So we cannot verify there..

Thanks & Regards,
Satyanath
 
satyanath puppala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also once mail has sent the PDF will be deleted by the code in production.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then I advise to get in touch with the sys admins of that system - most likely they can grab one of the troublesome PDFs before they're deleted.

One thing I notice is that it says that the charset is US-ASCII - PDFs are binary files that contain characters outside of the ASCII range.
 
satyanath puppala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then can i set it as


 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
PDFs are definitely not ASCII, UTF-8 might work.
 
satyanath puppala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks & Sorry for disturbing you




is it correct or shall i need to use like this?



 
reply
    Bookmark Topic Watch Topic
  • New Topic