Skip to Content

Why pdf opens in browser but not in pdf reader ?

After having an attachment in my order(VA03) , i use FM 'BDS_DOCUMENT_GET_TABLE' to get the binary table of this pdf then i send it by email/

When i open it using the browser, it opens correctly, but when i save it in my documents then trying to open it , i get this message

'There was an error opening this document. The file is damaged and could not be repaired'

what could have happened to the pdf after converting it into binary table ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 13, 2018 at 09:40 PM

    Each software has its own implementation to display the PDF, so maybe your PDF is corrupted (the classic issue is extra zero bits at the end of the file) but the browser is able to display it. So, pay attention to the length of the file when you get it, or when you attach it to the email.

    Add comment
    10|10000 characters needed characters exceeded

    • Notwithstanding Kiran K's comment above, yes there is a big need to explain what you do with the pdf file. The fact that you don't think so is immaterial. My experience with these issues is that there are many points where the corruption can happen. That is why I asked you earlier "How are you creating the email?", which you didn't deign to answer.

      Anyway, you've got your solution now, so I'm closing the thread.

    Further commenting has been locked.