Insert clickable images into your PDF

PDFs created by pdfMachine can have images inserted with underlying links (urls). This can be used to create "pay now" links or other call to action buttons.

Add a Paypal 'pay now' button to your PDF

paypal logo

Using pdfMachine parameter parsing you can now create 'pay now' or 'buy now' buttons that appear on your PDF. When the button is clicked a browser is launched displaying a PayPal webpage where the transaction can be completed.


How to create a 'pay now' button in your PDF

  • 1. Enable parameter parsing in pdfMachine options
  • 2. Insert the pdfMachine parameter parsing commands for image insertion into your document. Use the 'i' command to position your image. Use the 'ilqs' command to build your query string. Example below.
  • 3. Print to pdfMachine. The PDF will now have a clickable image.

Example

When the file paypal_link_example.html is printed to the "Broadgun pdfMachine" printer (make sure Internet Explorer is used and that parameter parsing is enabled) the following PDF is generated: paypal_link_example.pdf

Insert image as a clickable button that launches a URL.

Using pdfMachine parameter parsing, images with hyperlinks can be dynamically built and inserted into the PDF.

How to create a 'clickable' button in your PDF

  • 1. Enable parameter parsing in pdfMachine options
  • 2. Insert the pdfMachine parameter parsing commands for image insertion into the document to be converted to PDF. Use the 'i' command to position your image. Use the 'il' command to set your url. Example below.
  • 3. Print to pdfMachine. The PDF will now have a clickable image.

Example

When the following parameters are printed to the "Broadgun pdfMachine" printer with parameter parsing enabled an image is inserted into the PDF

#_ i 2 _#
#_ ii 2 http://www.pdfmachine.com/images/pdfmachine_box_ultimate_big.png _#
#_ il 2 http://www.pdfmachine.com/genp/pdfmachine_ultimate.html _#