Saturday, November 24, 2012

Replace an image from a PDF document created by the HTML to PDF converter with a higher resolution image


How can I  

REPLACE an IMAGE from a PDF document created by the HiQPDF HTML to PDF converter  with a HIGHER Resolution IMAGE 


By using the HiQPdf HTML to PDF conversion engine it is possible to determine the position in PDF of any HTML element. It is also possible to hide from the created PDF document any HTML element. 

Using these two features it is possible to configure the converter to hide an image from PDF and to determine where that image would have been located in PDF. Based on this information, after the HTML to PDF conversion, a PdfImage object can be laid out in the same place where the image from HTML would have been laid out. 

The HiQPdf library package that can be downloaded from the website contains a complete sample application for this approach. 

You can also find online the source code and documentation and the live demo for this sample.