public class

Reflow

extends Object
implements AutoCloseable
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 close()
Frees the native memory of the object.
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 setCustomStyles(String styles)
Appends custom CSS styles to the output HTML.
void setDoNotReflowTextOverImages(boolean do_not_reflow_text_over_images)
Determines whether to not reflow text that appears over images.
void setFontOverrideName(String font_family)
Overrides the font to use for reflowed content.
void setHTMLOutputTextMarkup(boolean include)
Determines whether to write text markup tags into the output HTML.
void setHideBackgroundImages(boolean hide_background_images)
Determines whether to hide background images.
void setHideImagesUnderInvisibleText(boolean hide_images_under_invisible_text)
Determines whether to hide images that are covered by invisible text (typically produced by OCR).
void setHideImagesUnderText(boolean hide_images_under_text)
Determines whether to hide images that are covered by text.
void setIncludeBBoxForRecognizedZones(boolean include)
Determines whether to include bounding box information (of the original PDF) in 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
From interface java.lang.AutoCloseable

Public Constructors

public Reflow (long impl_ptr)

Public Methods

public long __GetHandle ()

public void close ()

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 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 setCustomStyles (String styles)

Appends custom CSS styles to the output HTML. Default is no custom styles.

Parameters
styles -- the CSS code without any