PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Parse PdfSharp.PdfDocument to MigraDoc.Document https://forum.pdfsharp.net/viewtopic.php?f=2&t=3642 |
Page 1 of 1 |
Author: | Asugusto [ Thu Aug 17, 2017 3:06 pm ] |
Post subject: | Parse PdfSharp.PdfDocument to MigraDoc.Document |
Hi, Can anyone guide me how to parse a PdfSharp.PdfDocument to MigraDoc.Document or vice versa? I need to do this because in migradoc i can set the bookmarks and in the pdfsharp i can set the security... Also i read that: Quote: // Heading1 to Heading9 are predefined styles with an outline level. An outline level // other than OutlineLevel.BodyText automatically creates the outline (or bookmarks) // in PDF. There is a way to change the Headings for H1 or specify wich one are bookmars? (Heading1 is equivalent yo H1?) Thanks |
Author: | Thomas Hoevel [ Thu Aug 17, 2017 3:20 pm ] |
Post subject: | Re: Parse PdfSharp.PdfDocument to MigraDoc.Document |
Hi! Create a PDF file with MigraDoc, then use PDFsharp to modify the PDF document. See this sample: http://www.pdfsharp.net/wiki/MigraDocHe ... ample.ashx In line #36 of the first code block is the PDFsharp document - you can modify it before saving it. |
Author: | Asugusto [ Fri Aug 18, 2017 2:23 pm ] |
Post subject: | Re: Parse PdfSharp.PdfDocument to MigraDoc.Document |
Hi! Thanks for the answer, i didn't notice that pdfRenderer.PdfDocument returns me a pdfDocument! Now i have another problem, i have to add bookmarks to my pdf, i know that i can do that with migradocs, if the pdf was created with html code. The problem is that i already have the pdf file, i cannot create it, there is anyway to interpretate the pdf code to create the bookmarks? Maybe load the pdf in a object to parse the pdfcode to html again and set the H1-H9 to be bookmarks? Regards |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |