• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to view a PDF content generated through

 
satyanath puppala
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Also once mail has sent the PDF will be deleted by the code in production.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Then can i set it as


 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks & Sorry for disturbing you




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



  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic