All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pdftron::PDF::Reflow Class Reference

#include <Reflow.h>

Public Member Functions

 Reflow ()
 
 Reflow (const Reflow &other)
 
 Reflow (TRN_Reflow impl)
 
Reflowoperator= (const Reflow &other)
 
 ~Reflow ()
 
void Destroy ()
 
UString GetHtml ()
 
UString GetAnnot (UString in_id)
 
UString SetAnnot (UString in_json)
 
void SetIncludeImages (bool include)
 
void SetHTMLOutputTextMarkup (bool include)
 
void SetMessageWhenNoReflowContent (UString content)
 
void SetMessageWhenReflowFailed (UString content)
 

Public Attributes

TRN_Reflow m_impl
 

Detailed Description

The class Reflow. Reflow annotations between PDF and HTML

DocumentConversion instances are created through methods belonging to the Convert class. See Convert.CreateReflow for an example.

Definition at line 26 of file Reflow.h.

Constructor & Destructor Documentation

pdftron::PDF::Reflow::Reflow ( )
pdftron::PDF::Reflow::Reflow ( const Reflow other)
pdftron::PDF::Reflow::Reflow ( TRN_Reflow  impl)
pdftron::PDF::Reflow::~Reflow ( )

Member Function Documentation

void pdftron::PDF::Reflow::Destroy ( )
UString pdftron::PDF::Reflow::GetAnnot ( UString  in_id)

Gets PDF annotation(s) as JSON.

Parameters
in_id– an annotation ID, or an empty string.
Returns
returns JSON string.
UString pdftron::PDF::Reflow::GetHtml ( )

Converts PDF to HTML.

Returns
returns HTML as a string.
Reflow& pdftron::PDF::Reflow::operator= ( const Reflow other)
UString pdftron::PDF::Reflow::SetAnnot ( UString  in_json)

Updates PDF annotation.

Parameters
in_json– update instructions (JSON).
Returns
returns JSON string.
void pdftron::PDF::Reflow::SetHTMLOutputTextMarkup ( bool  include)

Determines whether to write text markup tags into the output HTML. Default is false.

Parameters
include– if true text markup tags will be included in the output HTML..
void pdftron::PDF::Reflow::SetIncludeImages ( bool  include)

Determines whether to include images in the output HTML. Default is false.

Parameters
include– if true images will be included in the output HTML.
void pdftron::PDF::Reflow::SetMessageWhenNoReflowContent ( UString  content)

Sets the error message in the output HTML when the page doesn't contain reflowable text. Use it for localization purposes. Default: "This page doesn't contain reflowable text".

Parameters
content– the localized message.
void pdftron::PDF::Reflow::SetMessageWhenReflowFailed ( UString  content)

Sets the error message in the output HTML when reflow conversion fails. Use it for localization purposes. Default: "Could not reflow this page".

Parameters
content– the localized message.

Member Data Documentation

TRN_Reflow pdftron::PDF::Reflow::m_impl

Definition at line 91 of file Reflow.h.


The documentation for this class was generated from the following file: