Class PdfToHtmlConverter


  • public class PdfToHtmlConverter
    extends Object
    Experimental

    Converts a PDF to an HTML file.

    • Method Detail

      • configureHtmlSaveOptions

        protected com.aspose.pdf.HtmlSaveOptions configureHtmlSaveOptions()
      • cleanupContent

        protected com.aspose.pdf.Document cleanupContent​(com.aspose.pdf.Document pdfDocument)
                                                  throws IOException
        Throws:
        IOException
      • removeLogos

        protected void removeLogos​(com.aspose.pdf.Document pdfDocument,
                                   Set<com.aspose.pdf.MarkupSection> footersAndHeaders)
      • hasFootersAndPageNumbers

        protected boolean hasFootersAndPageNumbers​(Set<com.aspose.pdf.MarkupSection> footersAndHeaders)
      • createFullWidthRectangles

        protected List<com.aspose.pdf.Rectangle> createFullWidthRectangles​(Set<com.aspose.pdf.MarkupSection> footersAndHeaders)
      • removeTopAndBottomMargins

        protected void removeTopAndBottomMargins​(com.aspose.pdf.Page page,
                                                 boolean needToCropBottom)
      • findFootersAndHeaders

        protected Set<com.aspose.pdf.MarkupSection> findFootersAndHeaders​(com.aspose.pdf.ParagraphAbsorber paragraphAbsorber)
      • findMatchingSections

        protected Set<com.aspose.pdf.MarkupSection> findMatchingSections​(com.aspose.pdf.MarkupSection markupSection,
                                                                         List<com.aspose.pdf.PageMarkup> pageMarkups)
      • matchesPageNumberRegexp

        protected boolean matchesPageNumberRegexp​(com.aspose.pdf.MarkupSection markupSection)
      • getSectionText

        protected String getSectionText​(com.aspose.pdf.MarkupSection section)
      • changeLayout

        protected com.aspose.pdf.Document changeLayout​(com.aspose.pdf.Document pdfDocument)
                                                throws IOException
        Throws:
        IOException
      • removeSections

        protected void removeSections​(Set<com.aspose.pdf.MarkupSection> sectionsToRemove)