/    Sign up×
Community /Pin to ProfileBookmark

Where should I integrate this code?

I’m working with this:
[url]http://www.rainbodesign.com/pub/image-tools/pdf-to-jpg.html[/url]

to see if I can add the ability to upload a pdf to the PHPmotion script ([url]http://demo.phpmotiontemplates.com/default/[/url]),
(which currently only allows jpg, png & gif image uploads).

The part I need help with is where to integrate this code:

[CODE]<a href=”/pdf/myDocument.pdf” title=”View This PDF File”>
<img src=”/scripts/pdf2jpg.php?src=pdf/myDocument.pdf” width=”250″ alt=”PDF Document” />
</a>[/CODE]

into the attached file?

[canned-message]attachments-removed-during-migration[/canned-message]

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@deathshadowSep 23.2014 — PDF isn't an image format supported by browsers, so I'm not sure what you are expecting it to do or how you want to integrate it.

Though that code gives me a headache -- unless that's an HTML e-mail 90%+ of it belongs in the trash can. Tables for nothing, static style inlined in the markup, strong doing label's job, line breaks doing padding's job, tags like FONT that have no business on any website written after 1997...
Copy linkTweet thisAlerts:
@chrisjchrisjauthorSep 23.2014 — That was more complaining then helping.

What I expect to do with it is convert a pdf to a jpg which is supported by browsers.

Any other help will be appreciated.
×

Success!

Help @chrisjchrisj 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.14,
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,
)...