How to use proper url encoding for html2pdf?

Example: The url you want to render has a query string in it like
http://www.google.com/search?hl=de&source=hp&q=qualidator&meta=&aq=f&oq=

If you want to pass this url to html2pdf you have to make sure you url encode this url before adding it to your rendering path and query.

The encoded URL looks like this:
http%3A%2F%2Fwww.google.com%2Fsearch%3Fhl%3Dde%26source%3Dhp%26q%3Dqualidator%26meta%3D%26aq%3Df%26oq%3D

Use a URL encode like http://www.albionresearch.com/misc/urlencode.php for that.

The final URL to call the rendering service then is:
http://convert.html2pdf.seven49.net/?url_to_render=http%3A%2F%2Fwww.google.com%2Fsearch%3Fhl%3Dde%26source%3Dhp%26q%3Dqualidator%26meta%3D%26aq%3Df%26oq%3D

If you want to add more parameters this is no problem. Example:
http://convert.html2pdf.seven49.net/?url_to_render=http%3A%2F%2Fwww.google.com%2Fsearch%3Fhl%3Dde%26source%3Dhp%26q%3Dqualidator%26meta%3D%26aq%3Df%26oq%3D&FooterText=Your+footer+text+goes+here  


Buy your Version of html2pdf

HTML to PDF - Starter Package

  • 1000 PDF Conversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

HTML to PDF - Standard Package

  • 5000 PDF Conversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

HTML to PDF Professional Package

  • 10'000 PDF Conversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

HTML to PDFEnterprise Package

  • 25'000 PDFConversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

Footer unten

Copyright © seven49.net
Source: http://www.html2pdf.solutions/en/faq/frequently_asked_questions/url_encoding_for_html2pdf.htm