Skip to Content
author's profile photo Former Member
Former Member

Multiple pdf generation using CONVERT_OTF_2_PDF

Hi All,

I have used this FM's 'CONVERT_OTF_2_PDF' for multiple pdf generation in loop. First pdf is generating fine. From the second pdf file making a problem.
Second pdf file is getting generated but I couldn't open it. It showing a error message as 'There was an error in opening this doc. The file is damaged'.


Govendran Gopi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 11, 2014 at 06:40 AM

    Hi Govendran,

    did you clear and refresh your internal tables and variables before each FM call? I came across several FMs that don't initialize an internal table before using and filling it.

    Maybe that's worth a try. If this FM also doesn't initialize the fields, it will add the new generated PDF data to the old table and then you might get a damaged file when you try to open it.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 11, 2014 at 09:21 AM

    Hi Gopi,

    Did you try the method? Got any success?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.