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

PDF file opening error

Former Member
0 Likes
1,037

Hi Experts,

I used function module CONVERT_OTF_2_PDF to convert my OTF file to PDF. When i open this file through Adobe acrobat reader on my PC, it displays pop-up saying that "File is damaged, but it is being repaired". I get this message for a fraction of second and then file opens. There seems to be no issues with file contents. I got to know that there exists a XREF table which stores references of all objects in PDF file. If these references or offset value of this XREF table is not proper then we receive above mentioned error. Since i am just passing OTF file to function and receiving binary contents, i am not getting whats going wrong.

Can anyone help me to resolve this issue ?

Regards,

Nishad

2 REPLIES 2
Read only

Former Member
0 Likes
592

how u got OTF data ?

check the sample program then u will come to know RS*PDF4/5

Regards

Prabhu

Read only

0 Likes
592

Hi,

We are actually creating two spools. We read these spools into internal table with the help of functions RSTS_OPEN_RLC, RSTS_READ and RSTS_CLOSE. Data for two spools are maintained in two different internal tables which are later merged to have one table containing OTF data. This internal is table is then passed to CONVERT_OTF_2_PDF for conversion.

Do you think merging of two OTF files are causing problem ?

I ran program RSTXPDFT4 to download two spools separately on local machine. There is no error at all while opening these files.

Regards,

Nishad