Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
quick pdf library |
Post Reply |
Author | |
mayur
Beginner Joined: 18 Aug 12 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 18 Aug 12 at 12:20PM |
Hi,
I am working on the C# windows form project. I want to use quick pdf library. Is it possible to convert the html to pdf using quick pdf library. The HTML pages are present on the local drive. Can i convert the local HTMl pages to pdf using this library? Please let me know about it. Any sample code will be greatly appreciated. Thanks. |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Quick PDF Library can render a subset of HTML tags and features. The list of tags can be found here. It will depend on how complex your PDF files are I suspect as to how well it will work for you. Here is some sample code. QP.NewDocument(); QP.SetOrigin(1); string s = File.ReadAllText("input.html"); QP.DrawBox(10, 10, 300, 500, 0); string overflow = QP.DrawHTMLTextBox(10, 10, 300, 500, s); while (overflow != "") { QP.NewPage(); QP.DrawBox(10, 10, 300, 500, 0); overflow = QP.DrawHTMLTextBox(10, 10, 300, 500, overflow); } QP.SaveToFile("out.pdf"); Andrew
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store