Page 1 of 1

Correct code for Save as PDF option by verifying UN & PASS

Posted: Tue Mar 31, 2015 5:02 am
by kpaul771
Hi,
I have added below code for Save as PDF option in a html file.

<a href="//pdfcrowd.com/url_to_pdf/?url=http://whatsongroup.com/CRMvtiger/index ... tail">Save as PDF</a>

but it's creates PDF for index page not the exact PDF of specific html file witten in PDF Maker.
Can you ask me the correct code which can enter into server's PDF page by verifying username & password.

Thanks
Keya Paul

Re: Correct code for Save as PDF option by verifying UN & PA

Posted: Tue Mar 31, 2015 1:15 pm
by requinix
The URL you provided has &s that will conflict with their own URL. Take a step back and look at it: what you've passed them is

Code: Select all

url=http://whatsongroup.com/CRMvtiger/index.php?username=x
user_password=y
module=PDFMaker
view=Edit
templateid=2
return_view=Detail
Use urlencode on your URL before you put it in their URL.