/    Sign up×
Community /Pin to ProfileBookmark

How to present a PDF document to a client

Trying to add the ability to view pdf files to my app as well as JPG files. Seems that some user’s phones have a problem with that and I wonder if there is something that I can do to avoid this difficulty. I’m sure that users can download something but my users are not all that ambitious nor talented. Any suggestions?

Currently my users are seeing a screen from which they can choose the set of files they want to see and I build the next page using the files that match that request. The sets may or may not be pdf files and the users don’t know which ones they will be given. I would prefer that they could see pdf files since they are better looking than the jpg images.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogSep 26.2021 — Hmm...the fun of trying to deal with printer-oriented files in a web browser world. :(

Would converting the PDF to HTML be an option? Looks like there are some libraries and such out there that can do that, though I have no experience with any of them. E.g., first one my search found: https://www.phpclasses.org/package/9423-PHP-Convert-PDF-to-HTML-using-Poppler.html

(Only experience I have is an app I worked on a few years ago where we did the opposite: convert HTML output into a PDF; and that used some library I found on GitHub.)
Copy linkTweet thisAlerts:
@ginerjmauthorSep 26.2021 — Not an option.
×

Success!

Help @ginerjm spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...