I am trying out the PDF to HTML samples and I would like to see how the reflow module works, but I cannot seem to find anything about this. I am likely being stupid and it’s obvious to people who were actually loved and cared for by their mother as a child, but I cannot find any references to it outside of that error message. Any guidance would be greatly appreciated.
1 Like
Hello, I’m Ron, an automated tech support bot
While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:
Guides:- Code samples to redact PDFs on Cross-Platform (Core)
- Adding a license key - Common questions
- Convert to PDF with virtual printer on Cross-Platform (Core) - About converting to PDF
- Searching PDF documents with Cross-Platform (Core) Library
Thank you reaching out to us. The team is still doing some final packaging for this new feature, but to get started you can download Linux and Windows modules here.
http://www.pdftron.com/downloads/PDF2HtmlReflowParagraphsModuleLinux.tar.gz
http://www.pdftron.com/downloads/PDF2HtmlReflowParagraphsModuleWindows.zip
Your code would be something like the following.
PDFNet.Initialize();
PDFNet.AddResourceSearchPath(PATH_TO_PDF2HtmlReflowParagraphsModule_FOLDER);
PDFDoc pdfdoc = new PDFDoc(input_path + "newsletter.pdf");
pdfdoc.InitSecurityHandler();
var htmloutputoptions = new pdftron.PDF.Convert.HTMLOutputOptions();
htmloutputoptions.SetContentReflowSetting(pdftron.PDF.Convert.HTMLOutputOptions.ContentReflowSetting.e_reflow_paragraphs);
pdftron.PDF.Convert.ToHtml(pdfdoc, "output.html", htmloutputoptions);
Let me know how this works for you.
1 Like