Package com.lowagie.toolbox.plugins
Class Normalize
- java.lang.Object
-
- com.lowagie.toolbox.AbstractTool
-
- com.lowagie.toolbox.plugins.Normalize
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener
public class Normalize extends AbstractTool
- Since:
- 2.1.1 (imported from itexttoolbox project)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classNormalize.Ausrichtung
-
Field Summary
Fields Modifier and Type Field Description (package private) FileArgumentdestfile(package private) floatheight(package private) PdfDictionarylastpage(package private) intpagecount(package private) intpagecountinsertedpages(package private) intpagecountrotatedpages(package private) floattolerancex(package private) floattolerancey(package private) floatwidth-
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 Constructor Description Normalize()Constructs a Burst object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidappendemptypageatend(PdfReader reader, PdfWriter writer)protected voidcreateFrame()Creates the internal frame.voidexecute()Executes the tool (in most cases this generates a PDF file).protected java.io.FilegetDestPathPDF()Gets the PDF file that should be generated (or null if the output isn't a PDF file).intgetPagecountinsertedpages()intgetPagecountrotatedpages()protected voiditeratePages(PdfDictionary page, PdfReader pdfreader, java.util.ArrayList<PdfDictionary> pageInh, int count_in_leaf, PdfWriter writer)static voidmain(java.lang.String[] args)Normalize PDF file.private voidSeitehinzufuegen(PdfDictionary page, int count_in_leaf, PdfWriter writer, PdfArray array)voidvalueHasChanged(AbstractArgument arg)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 Detail
-
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
-
-
Method Detail
-
createFrame
protected void createFrame()
Description copied from class:AbstractToolCreates the internal frame.- Specified by:
createFramein classAbstractTool- See Also:
AbstractTool.createFrame()
-
iteratePages
protected void iteratePages(PdfDictionary page, PdfReader pdfreader, java.util.ArrayList<PdfDictionary> pageInh, int count_in_leaf, PdfWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
Seitehinzufuegen
private void Seitehinzufuegen(PdfDictionary page, int count_in_leaf, PdfWriter writer, PdfArray array) throws java.io.IOException
- Throws:
java.io.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:
AbstractTool.execute()
-
appendemptypageatend
private void appendemptypageatend(PdfReader reader, PdfWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
getPagecountinsertedpages
public int getPagecountinsertedpages()
-
getPagecountrotatedpages
public int getPagecountrotatedpages()
-
valueHasChanged
public void valueHasChanged(AbstractArgument arg)
Description copied from class:AbstractToolIndicates that the value of an argument has changed.- Specified by:
valueHasChangedin classAbstractTool- Parameters:
arg- StringArgument- See Also:
AbstractTool.valueHasChanged(com.lowagie.toolbox.arguments.AbstractArgument)
-
main
public static void main(java.lang.String[] args)
Normalize PDF file.- Parameters:
args- String[]
-
getDestPathPDF
protected java.io.File getDestPathPDF() throws java.lang.InstantiationExceptionDescription 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:
java.lang.InstantiationException- See Also:
AbstractTool.getDestPathPDF()
-
-