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);
...................................
精彩评论