Link to home
Start Free TrialLog in
Avatar of Richard Teasdale
Richard TeasdaleFlag for United Kingdom of Great Britain and Northern Ireland

asked on

opening a multiple page pdf using php

Hi : On June 11th I asked a question about calling a pdf from a table row using php. This was answered promptly and effectively by two experts - thanks again!
However, while the pdf opens 'inline' (ie within the browser) - which is my preference - only the FIRST page is revealed. I cannot access second or subsequent pages.
Does anybody know of a way to get the pdf to display every page? or download rather than open inline?
The pdf is NOT stored in a database, nor is a link to it.  The pdf is named after the sopcode, and stored in the same directory as the php file. ....but I am willing to try anything to resolve this!
4020304.php
Avatar of David Favor
David Favor
Flag of United States of America image

Looks like your PHP file only builds HTML with links pointing to existing .pdf files.

Just download one of your .pdf files using curl or wget, to see if a copy viewed locally actually contains data you expect.

If you get stumped, provide a clickable link to one of your .pdf files + likely someone can help you debug your process.
Avatar of Richard Teasdale

ASKER

Thanks David! I have been looking and if I use run the program on  firefox or chrome on a pc, then acrobat opens the file. If on an ipad  - the SOP program will be carried by safety supervisors  on an ipad - it is 'inline'. So sounds like an ipad 'thing' rather than anything else. Am investigating but thanks for your prompt reply!
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial