Package com.lowagie.toolbox.plugins
Class Normalize
java.lang.Object
com.lowagie.toolbox.AbstractTool
com.lowagie.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) float
Fields inherited from class com.lowagie.toolbox.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 void
appendemptypageatend
(PdfReader reader, PdfWriter writer) protected void
Creates the internal frame.void
execute()
Executes the tool (in most cases this generates a PDF file).protected File
Gets the PDF file that should be generated (or null if the output isn't a PDF file).int
int
protected void
iteratePages
(PdfDictionary page, PdfReader pdfreader, ArrayList<PdfDictionary> pageInh, int count_in_leaf, PdfWriter writer) static void
Normalize PDF file.private void
Seitehinzufuegen
(PdfDictionary page, int count_in_leaf, PdfWriter writer, PdfArray array) void
Indicates that the value of an argument has changed.Methods inherited from class com.lowagie.toolbox.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
Normalize PDF file.- Parameters:
args
- String[]
-
createFrame
protected void createFrame()Description copied from class:AbstractTool
Creates the internal frame.- Specified by:
createFrame
in 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:AbstractTool
Executes the tool (in most cases this generates a PDF file).- Specified by:
execute
in classAbstractTool
- See Also:
-
appendemptypageatend
- Throws:
IOException
-
getPagecountinsertedpages
public int getPagecountinsertedpages() -
getPagecountrotatedpages
public int getPagecountrotatedpages() -
valueHasChanged
Description copied from class:AbstractTool
Indicates that the value of an argument has changed.- Specified by:
valueHasChanged
in classAbstractTool
- Parameters:
arg
- StringArgument- See Also:
-
getDestPathPDF
Description copied from class:AbstractTool
Gets the PDF file that should be generated (or null if the output isn't a PDF file).- Specified by:
getDestPathPDF
in classAbstractTool
- Returns:
- File
- Throws:
InstantiationException
- on error- See Also:
-