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.HtmlConversionActionListener  
interface HtmlConversionComponent.HtmlConversionListener Callback for HTML conversion progress  
Public Constructors
HtmlConversionComponent(Html2PdfView view, HtmlConversionComponent.HtmlConversionListener listener)
Public Methods
void fromUrl(Context context, String link, Uri outputFolder)
Converts specified HTML link to PDF and save it to the specified Uri folder with the output file name speicifed by #mOutputFilename
void handleWebpageToPDF(FragmentActivity activity, Uri outputFolder, DialogInterface.OnDismissListener dismissListener)
void handleWebpageToPDF(FragmentActivity activity, ImportWebpageUrlSelectorDialogFragment customFragment, Uri outputFolder, DialogInterface.OnDismissListener dismissListener, HtmlConversionComponent.HtmlConversionActionListener actionListener)
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, Uri outputFolder, DialogInterface.OnDismissListener dismissListener, HtmlConversionComponent.HtmlConversionActionListener actionListener)
void handleWebpageToPDF(FragmentActivity activity, ImportWebpageUrlSelectorDialogFragment customFragment, DialogInterface.OnDismissListener dismissListener, ImportWebpageUrlSelectorDialogFragment.OnLinkSelectedListener linkSelectedListener)
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 fromUrl (Context context, String link, Uri outputFolder)

Converts specified HTML link to PDF and save it to the specified Uri folder with the output file name speicifed by #mOutputFilename

Parameters
context used to inflate context resolver
link HTML to convert
outputFolder output for the converted PDF

public void handleWebpageToPDF (FragmentActivity activity, Uri outputFolder, DialogInterface.OnDismissListener dismissListener)

public void handleWebpageToPDF (FragmentActivity activity, ImportWebpageUrlSelectorDialogFragment customFragment, Uri outputFolder, DialogInterface.OnDismissListener dismissListener, HtmlConversionComponent.HtmlConversionActionListener actionListener)

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, Uri outputFolder, DialogInterface.OnDismissListener dismissListener, HtmlConversionComponent.HtmlConversionActionListener actionListener)

public void handleWebpageToPDF (FragmentActivity activity, ImportWebpageUrlSelectorDialogFragment customFragment, DialogInterface.OnDismissListener dismissListener, ImportWebpageUrlSelectorDialogFragment.OnLinkSelectedListener linkSelectedListener)

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