Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var document = new HtmlToPdfDocument {
- GlobalSettings = {
- ProduceOutline = true,
- DocumentTitle = "Pretty Websites",
- PaperSize = PaperKind.A4, // Implicit conversion to PechkinPaperSize
- Margins = {All = 1.375, Unit = Unit.Centimeters},
- },
- Objects = {new ObjectSettings {
- HtmlText = html,
- ProduceForms = false,
- IncludeInOutline = false
- }}
- };
- IPechkin pechkin = Factory.Create();
- byte[] pdfBuf = pechkin.Convert(document);
- return pdfBuf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement