I have reports using BI Publisher that get generated by passing parameters through Oracle ApEx. Recently we upgraded from BI Publisher 10 to 11. Now when we run these reports, we get an error File does not begin with '%PDF-'. I followed the instructions provided from this link https://helpx.adobe.com/acrobat/kb/pdf-error-1015-11001-update.html but we continue to get the error message. Are there any other solutions to this error? Thank you.
The "%PDF-" characters are the "magic numbers" of a binary file that indicates that the file is actually a PDF.
99% of the time when this happens, what actually happens is this:
- APEX tells your web browser: Hey, I'm sending file "abcdefg.pdf" it has MIME Type "application/x-pdf"
- APEX runs into an error
- APEX sends an HTML page that describes the error
That is, your "PDF" file is actually 'HTML' that contains the error that describes "what went wrong"
- Save the file and change the extension to ".html"
- Open the file in a web browser.
My guess: the ACL for the old BI Publisher server wasn't reconfigured to allow communications to the new BI Publisher.
Also, did you change the APEX Print Server configuration to match?
Still no luck on my side.
How do you configure the APEX Print Server in v 4.0?
If you save the file, and change the extension to ".html"...
When you open up that file in a Web Browser...
What does it say?
Also, check the ORDS logs to see if "anything odd" happened.