Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error opening PDF

Former Member
0 Likes
753

Hi all,

I'm having problems opening PDF files. I'm using FM CONVERT_OTFSPOOLJOB_2_PDF to generate the file into the server.

Then I'm using class/method VIEWER->VIEW_DOCUMENT_FROM_TABLE to open it. The problem is that some files are opened and others don't.

It appears an error form Adobe Reader 'The file is damaged and can't be repaired ' .All the files are generated in the same way. Any clue what can be?

Thanks

1 ACCEPTED SOLUTION
Read only

former_member194416
Contributor
0 Likes
685

Are there images or different characters in the files which could not be opened ? I lived same problem once only in files which contain images and I resolve it trying different conversions.

5 REPLIES 5
Read only

former_member194416
Contributor
0 Likes
686

Are there images or different characters in the files which could not be opened ? I lived same problem once only in files which contain images and I resolve it trying different conversions.

Read only

0 Likes
685

No, I´m generating receipts. The only thing that change from one to other is data. No special characters either images.

Read only

0 Likes
685

What about printer definitions or device types are you sure they are all same for all outputs ?

Read only

0 Likes
685

Yes, they are all the same. I'm using FM 'gv_func_mod_name' to set printer definitions. All outputs have the same.

When I open PDF files directly from the server, there are no errors. It only happens when I use the report.

Read only

Former Member
0 Likes
685

Please look at SAP note : 1059068.

Hope this solves.