开发者

How can I set page size using WkHtmlToXSharp?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜