/    Sign up×
Community /Pin to ProfileBookmark

Want to convert web page to pdf for my website

Hello,

I have a website which provides link to convert the displayed webpage to pdf for the visitors. The webpage contains flowchart, stylesheets and other formats for drawing such as canvas, svg, raphael container etc… I need an API or online tool (even if it is commercial/paid) which can generate the pdf correctly.

Thanks in advance

to post a comment
Full-stack Developer

13 Comments(s)

Copy linkTweet thisAlerts:
@kralcxJan 04.2014 — Adobe Acrobat Pro, just click Create PDF from web page. Then on your website hyperlink to the newly created pdf file.
Copy linkTweet thisAlerts:
@hidineauthorJan 06.2014 — I need an online tool that can convert the webpage to pdf.

I tried 'web2pdfconvert.com' - copy-pasted this '<a href="http://www.web2pdfconvert.com/convert">Save to PDF</a>' to my webpage(index.xhtml) - but i get a blank pdf output and error stating 'cant access local url' my url - (http://localhost:8080/myApp/index.xhtml).

I have tried a few other online tools suchas htm2pdf.co.uk, pdfcrowd.com with similar errors
Copy linkTweet thisAlerts:
@jedaisoulJan 06.2014 — If no tools are working, it sounds to me like access has not been permitted to your local host. I'm no expert, but it could be your firewall, or apache settings. What local host are you using?
Copy linkTweet thisAlerts:
@hidineauthorJan 07.2014 — im using Apache Tomcat server and Ubuntu 12.04 OS.
Copy linkTweet thisAlerts:
@jedaisoulJan 07.2014 — In the Apache installation diectory there should be a directory /conf/ with a file /conf/httpd.conf which contains the configuration details. These should include somehing like:

<i>
</i>#
# Controls who can get stuff from this server.
#

# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1


and:

<i>
</i>&lt;Directory "cgi-bin"&gt;
AllowOverride None
Options None
Order Deny,Allow
Deny from all
Allow from 127.0.0.1


You will see that first access is denied to all, then specific address(es) are allowed. 127.0.0.1 is the address of localhost. To allow other network addresses, you need to add/amend both these places. I do not recommend it, but the simplest way to allow access is to amend "Deny from all" to "Allow from all", but that is very insecure. What is preferable is open it for specific addresses. E.g. To allow access from another PC on your local network with the fixed address 192.168.0.2 add:

<i>
</i>Allow from 192.168.0.2


To allow from a range of addresses, just add a line for each. E.g.

<i>
</i>Allow from 192.168.0.2
Allow from 192.168.0.3
Allow from 192.168.0.4
Allow from 192.168.0.5
Allow from 192.168.0.6
Allow from 192.168.0.7
Allow from 192.168.0.8


I am not familiar with Ubuntu, or unix in general, so I do not know anything about your firewall or how to configure it to allow access, but I hope this helps...

P.S. Always take a copy of the configuration file before making any changes to it!!!
Copy linkTweet thisAlerts:
@John_marksJan 31.2014 — Thanks for sharing great information,with us I strongly believe it is helpful for me as well as my forum friends....?
Copy linkTweet thisAlerts:
@AlcottpdfFeb 13.2014 — Check this image converting software but not online converting tool. It can be installed on your windows system with 32 bit and 64 bit binaries, allowing for convert image, documemt or text file to pdf document. So, you can first save your webpage into image, text or document file, then the conversion will be very easy.
Copy linkTweet thisAlerts:
@Jasonsmith21Feb 13.2014 — Try this simple method to generate from Awesome screenshot plugin from chrome. But i think Adobe Acrobat is a better option. You can Use lot of software for your web development and illustration purpose available in market.
Copy linkTweet thisAlerts:
@janniferFeb 13.2014 — According to me Adobe Acrobat is better option.
Copy linkTweet thisAlerts:
@aubenefitFeb 13.2014 — http://pdfmyurl.com/

Please check that url.
Copy linkTweet thisAlerts:
@adamssmithFeb 19.2014 — Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more

information? It is extremely helpful for me.

[url=http://www.logodesignbest.co.uk]Web design[/url]
Copy linkTweet thisAlerts:
@evanpanDec 09.2015 — [COLOR="#000000"]Hi, Alcottpdf.

Thnaks for your nice sharing. I wonder whether the[/COLOR]
[COLOR="#000000"]pdf converter[/COLOR] [COLOR="#000000"]I am tetsing these days can help with that? Any differences between those two toolkits?







Best regards,

Pan[/COLOR]
Copy linkTweet thisAlerts:
@andrewdennishDec 14.2015 — If no tools are working, it sounds to me like access has not been permitted to your local host. I am no expert, but it could be your firewall, or apache settings. What local host are you using ?
×

Success!

Help @hidine 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.29,
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,
)...