public static class HtmlSaveOptions.HtmlPageMarkupSavingInfo extends Object
If SplitToPages property of HtmlSaveOptions, then several HTML-files (one HTML file per converted page) are created during conversion of PDF to HTML. This class represents set of data that related to custom saving of one HTML-page's markup during conversion of PDF to HTML
Modifier and Type | Method and Description |
---|---|
InputStream |
getContentStream()
Set by converter.
|
int |
getHtmlHostPageNumber()
Set by converter.
|
int |
getPdfHostPageNumber()
Set by converter.
|
String |
getSupposedFileName()
Set by converter.
|
boolean |
isCustomProcessingCancelled()
Should be set in custom code when necessary.
|
void |
setContentStream(InputStream contentStream)
Set by converter.
|
void |
setCustomProcessingCancelled(boolean customProcessingCancelled)
Should be set in custom code when necessary.
|
void |
setHtmlHostPageNumber(int htmlHostPageNumber)
Set by converter.
|
void |
setPdfHostPageNumber(int pdfHostPageNumber)
Set by converter.
|
void |
setSupposedFileName(String supposedFileName)
Set by converter.
|
public String getSupposedFileName()
Set by converter. Supposed file name that goes from converter to code of custom method Can be used in custom code to decide how to process or where to save content
public void setSupposedFileName(String supposedFileName)
Set by converter. Supposed file name that goes from converter to code of custom method Can be used in custom code to decide how to process or where to save content
supposedFileName
- String valuepublic InputStream getContentStream()
Set by converter. Represents saved HTML as stream
public void setContentStream(InputStream contentStream)
Set by converter. Represents saved HTML as stream
contentStream
- InputStream instancepublic int getPdfHostPageNumber()
Set by converter. If SplitToPages property set, then several HTML-files(one HTML file per converted page) are created during conversion created . This property tells to custom code from what page of original PDF was created saved HTML-markup. If original page number for some reason is inknown or SplitOnPages=false,then this property allways contains '0' that signals that converter cannot supply exact original PDF's page number for supplied HTML-markup file.
public void setPdfHostPageNumber(int pdfHostPageNumber)
Set by converter. If SplitToPages property set, then several HTML-files(one HTML file per converted page) are created during conversion created . This property tells to custom code from what page of original PDF was created saved HTML-markup. If original page number for some reason is inknown or SplitOnPages=false,then this property allways contains '0' that signals that converter cannot supply exact original PDF's page number for supplied HTML-markup file.
pdfHostPageNumber
- int valuepublic int getHtmlHostPageNumber()
Set by converter. If set SplitToPages property, then several HTML-files(one HTML file per converted page) are created during conversion created . This property contains ordinal of saved HTML page's file. The property can be used in logic of custom code to decide how to process or where to save HTML page and If splitting on pages turned off this value always contains '1' since in such case only one big HTML page is generated for whole source document.
public void setHtmlHostPageNumber(int htmlHostPageNumber)
Set by converter. If set SplitToPages property, then several HTML-files(one HTML file per converted page) are created during conversion created . This property contains ordinal of saved HTML page's file. The property can be used in logic of custom code to decide how to process or where to save HTML page and If splitting on pages turned off this value always contains '1' since in such case only one big HTML page is generated for whole source document.
htmlHostPageNumber
- int valuepublic boolean isCustomProcessingCancelled()
Should be set in custom code when necessary. This flag must be set to "true" in custom code if for some reasons supplied html-markup should be processed not with custom code but with converter's code itself in standard for converter way. So, setting if this flag in custom code means that custom code did not process referenced file and converter must handle it itself
public void setCustomProcessingCancelled(boolean customProcessingCancelled)
Should be set in custom code when necessary. This flag must be set to "true" in custom code if for some reasons supplied html-markup should be processed not with custom code but with converter's code itself in standard for converter way. So, setting if this flag in custom code means that custom code did not process referenced file and converter must handle it itself
customProcessingCancelled
- boolean value