简体   繁体   中英

Winnowative HTML to PDf - Display images from database

All,

I am developing web application in which I have used Winnowative HTML to PDF component. I want to display images as well some text documents,PDF etc. in generated PDF. All the images,documents are saved in SQL Server database.

Along with HTML content how to display text,images etc. in generated PDF file saved in database?

I think you can have 2 solutions. The first is based on saving the HTML in a folder on disk and the second is done in entirely in internal memory.

  1. Construct a HTML file in a folder and save the referenced images in the same folder and convert that file to PDF. Make sure you use full URLs for image files like file:///C:/HTML/Images/image.jpg

  2. Embed the images in HTML code like this Embedding Base64 Images and then convert the HTML string to PDF.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM