Class Normalize
java.lang.Object
org.openpdf.toolbox.AbstractTool
org.openpdf.toolbox.plugins.Normalize
- All Implemented Interfaces:
ActionListener, EventListener
- Since:
- 2.1.1 (imported from itexttoolbox project)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) FileArgument(package private) float(package private) PdfDictionary(package private) int(package private) int(package private) int(package private) float(package private) float(package private) floatFields inherited from class AbstractTool
arguments, internalFrame, MENU_EXECUTE, MENU_EXECUTE_PRINT, MENU_EXECUTE_PRINT_SILENT, MENU_EXECUTE_SHOW, menuoptions, versionsarray -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidappendemptypageatend(PdfReader reader, PdfWriter writer) protected voidCreates the internal frame.voidexecute()Executes the tool (in most cases this generates a PDF file).protected FileGets the PDF file that should be generated (or null if the output isn't a PDF file).intintprotected voiditeratePages(PdfDictionary page, PdfReader pdfreader, ArrayList<PdfDictionary> pageInh, int count_in_leaf, PdfWriter writer) static voidNormalize PDF file.private voidSeitehinzufuegen(PdfDictionary page, int count_in_leaf, PdfWriter writer, PdfArray array) voidIndicates that the value of an argument has changed.Methods inherited from class AbstractTool
actionPerformed, addVersion, getArguments, getInternalFrame, getMenubar, getUsage, getValue, setArguments, setInternalFrame, setMainArguments, setMenubar
-
Field Details
-
destfile
FileArgument destfile -
pagecount
int pagecount -
width
float width -
height
float height -
lastpage
PdfDictionary lastpage -
tolerancex
float tolerancex -
tolerancey
float tolerancey -
pagecountinsertedpages
int pagecountinsertedpages -
pagecountrotatedpages
int pagecountrotatedpages
-
-
Constructor Details
-
Normalize
public Normalize()Constructs a Burst object.
-
-
Method Details
-
main
-
createFrame
protected void createFrame()Description copied from class:AbstractToolCreates the internal frame.- Specified by:
createFramein classAbstractTool- See Also:
-
iteratePages
protected void iteratePages(PdfDictionary page, PdfReader pdfreader, ArrayList<PdfDictionary> pageInh, int count_in_leaf, PdfWriter writer) throws IOException - Throws:
IOException
-
Seitehinzufuegen
private void Seitehinzufuegen(PdfDictionary page, int count_in_leaf, PdfWriter writer, PdfArray array) throws IOException - Throws:
IOException
-
execute
public void execute()Description copied from class:AbstractToolExecutes the tool (in most cases this generates a PDF file).- Specified by:
executein classAbstractTool- See Also:
-
appendemptypageatend
- Throws:
IOException
-
getPagecountinsertedpages
public int getPagecountinsertedpages() -
getPagecountrotatedpages
public int getPagecountrotatedpages() -
valueHasChanged
Description copied from class:AbstractToolIndicates that the value of an argument has changed.- Specified by:
valueHasChangedin classAbstractTool- Parameters:
arg- StringArgument- See Also:
-
getDestPathPDF
Description copied from class:AbstractToolGets the PDF file that should be generated (or null if the output isn't a PDF file).- Specified by:
getDestPathPDFin classAbstractTool- Returns:
- File
- Throws:
InstantiationException- on error- See Also:
-