public class

Reflow

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.Reflow

Class Overview

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.

Summary

Public Constructors
Reflow(long impl_ptr)
Public Methods
long __GetHandle()
void destroy()
Frees the native memory of the object.
String getAnnot(String in_id)
Gets PDF annotation(s) as JSON.
String getHtml()
Converts PDF to HTML.
String setAnnot(String in_json)
Updates PDF annotation.
void setHTMLOutputTextMarkup(boolean include)
Determines whether to write text markup tags into the output HTML.
void setIncludeImages(boolean include)
Determines whether to include images in the output HTML.
void setMessageWhenNoReflowContent(String content)
Sets the error message in the output HTML when the page doesn't contain reflowable text.
void setMessageWhenReflowFailed(String content)
Sets the error message in the output HTML when reflow conversion fails.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Reflow (long impl_ptr)

Public Methods

public long __GetHandle ()

public void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public String getAnnot (String in_id)

Gets PDF annotation(s) as JSON.

Parameters
in_id -- an annotation ID, or an empty string
Returns
  • returns JSON string

public String getHtml ()

Converts PDF to HTML.

Returns
  • returns HTML as a string

public String setAnnot (String in_json)

Updates PDF annotation.

Parameters
in_json -- update instructions (JSON)
Returns
  • returns JSON string

public void setHTMLOutputTextMarkup (boolean 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.

public void setIncludeImages (boolean 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.

public void setMessageWhenNoReflowContent (String 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

public void setMessageWhenReflowFailed (String 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