Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8839619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:16:36+00:00 2026-06-14T10:16:36+00:00

I create pdf files in php with fpdf. Everything is working so far but

  • 0

I create pdf files in php with fpdf. Everything is working so far but viewing these pdfs on mobile devices is not working.

The acrobat reader on android is closing with the message that the file is damaged. By a customer i know that on iPad opening the pdf file nothing happens…
I already tried just to create an empty pdf but same behavior.
On Windows with Acrobat Reader and foxit everything is working fine.

I need some ideas how to find the cause.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:16:37+00:00Added an answer on June 14, 2026 at 10:16 am

    The file made available by devOp in his comment, link, actually is a damaged PDF as it starts with some garbage before the mandatory %PDF line (cf. the PDF specification ISO 32000-1:2008):

    524.41 102.05 48.19 -11.34 re S
    %PDF-1.3
    3 0 obj
    <</Type /Page 
    [...]
    >>
    startxref
    556
    %%EOF 
    

    Due to the line “524.41 102.05 48.19 -11.34 re S” any PDF viewer may reject the file as broken. Some viewers, though, do not require the %PDF marker to be the first document line but allow a limitted amount of garbage to precede it. Acrobat Reader on Windows, e.g., merely requires the marker to be in the first thousand bytes or so.

    BTW, the trash line actually looks like a PDF operator for defining a rectangle (which is valid inside stream objects only, not standing alone like here). Maybe there is some command defining a rectangle in your code before the PDF object is properly opened or created?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with generating .pdf's from PHP using this library: http://www.fpdf.org/ I am currently
I want to create a PDF file from my PHP (HTML+CSS) but I positioning
I'm looking to create PDF files instantly online given user input in my html/php
hi i am trying to create a pdf files in php useing dompdf-0.5.1 i
I'm using iTextsharp library to create PDF files. I can declare for A4 Landscape
I'm currently converting some legacy code to create PDF files using iTextSharp. We're creating
I'm trying to create a small web service to convert PDF files to a
I have some SVG files that I'd like to create a PDF with. For
I've just startted creating pdf files in php and I was wondering if I
I have implemented pdf creation, http://bakery.cakephp.org/articles/kalileo/2010/06/08/creating-pdf-files-with-cakephp-and-tcpdf but in my logic, there is a link

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.