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

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
kpaul771
Forum Newbie
Posts: 3
Joined: Tue Mar 31, 2015 4:41 am

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

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

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

Post 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.
Post Reply