开发者

How can I set page size using WkHtmlToXSharp?

开发者 https://www.devze.com 2023-03-19 09:19 出处:网络
I was looking for an option to set a page size (of the pdf) while using WkHtmlToXSharp. Currently t开发者_运维百科he PDF auto generate A4 pages , but my HTML is long and I wish to generate 1 long cont

I was looking for an option to set a page size (of the pdf) while using WkHtmlToXSharp. Currently t开发者_运维百科he PDF auto generate A4 pages , but my HTML is long and I wish to generate 1 long continues PDF file.

Is that possible ? How?

Thx.


You can change Page size like..

 ........your code.....
 Document pdfDoc = new Document(PageSize.A3,8f, 8f, 8f, 8f);
 PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
 ...................................
0

精彩评论

暂无评论...
验证码 换一张
取 消