public abstract class

HtmlConversionComponent

extends Object
java.lang.Object
   ↳ com.pdftron.demo.navigation.component.html2pdf.HtmlConversionComponent
Known Direct Subclasses

Class Overview

Component used to convert HTML pages to PDF

Summary

Nested Classes
interface HtmlConversionComponent.HtmlConversionListener Callback for HTML conversion progress  
Public Constructors
HtmlConversionComponent(Html2PdfView view, HtmlConversionComponent.HtmlConversionListener listener)
Public Methods
void handleWebpageToPDF(FragmentActivity activity, Uri outputFolder)
Converts HTML, specified in the webpage selector dialog, and outputs to a PDF stored at the specified folder
void handleWebpageToPDF(FragmentActivity activity)
Converts HTML, specified in the webpage selector dialog, and outputs to a PDF stored at the location specified by the folder picker dialog
void handleWebpageToPdf(FragmentActivity activity, String link, File outputFolder)
Converts HTML from a specified HTML link and outputs to a PDF stored at a specified folder.
abstract void setOutputFilename(String filename)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HtmlConversionComponent (Html2PdfView view, HtmlConversionComponent.HtmlConversionListener listener)

Public Methods

public void handleWebpageToPDF (FragmentActivity activity, Uri outputFolder)

Converts HTML, specified in the webpage selector dialog, and outputs to a PDF stored at the specified folder

Parameters
activity used to attach fragment dialogs and get content resolver
outputFolder output folder used for conversion

public void handleWebpageToPDF (FragmentActivity activity)

Converts HTML, specified in the webpage selector dialog, and outputs to a PDF stored at the location specified by the folder picker dialog

Parameters
activity used to attach fragment dialogs and get content resolver

public void handleWebpageToPdf (FragmentActivity activity, String link, File outputFolder)

Converts HTML from a specified HTML link and outputs to a PDF stored at a specified folder.

Parameters
activity used to attach fragment dialogs and get content resolver
link HTML link to convert to PDF
outputFolder output folder used for conversion

public abstract void setOutputFilename (String filename)

Returns
  • the converted file's name