Package | Description |
---|---|
com.aspose.pdf |
The
com.aspose.pdf is a root package for all classes of Aspose.PDF for Java library
which are either directly in it like Document or indirectly through several
subpackages. |
com.aspose.pdf.devices |
The com.aspose.pdf.devices package provides classes which are used for representing
document as image(s) or a plain text.
|
com.aspose.pdf.drawing |
The com.aspose.pdf.drawing package provides classes describing graphic primitives like
arc, line, circle etc.
|
com.aspose.pdf.facades |
The
com.aspose.pdf.facades package provides classes originally came from
Aspose.Pdf.Kit. |
com.aspose.pdf.tagged |
The
com.aspose.pdf.tagged package provides classes that allow to work with TaggedContent of a
document. |
com.aspose.pdf.tagged.logicalstructure.elements |
The
<b>com.aspose.pdf.tagged.logicalstructure.elements </b> is a namespace for PDF Logical Structure classes. |
Modifier and Type | Method and Description |
---|---|
Page |
PageCollection.add()
Adds empty page
|
Page |
PageCollection.add(Page entity)
Adds page to collection.
|
Page |
PageCollection.findByPdfObject(com.aspose.pdf.engine.data.IPdfObject pdfObject) |
Page |
PageCollection.get_Item(int index)
Gets page by index.
|
Page |
Heading.getDestinationPage()
Gets the destination page.
|
Page |
Annotation.getPage()
Gets the page object with which this annotation is associated.
|
Page |
ExplicitDestination.getPage()
Gets the destination page object
|
Page |
ImagePlacement.getPage()
Gets the page containing the image.
|
Page |
TextFragment.getPage()
Gets page that contains the TextFragment
The value can be null in case the TextFragment object doesn't belong to any page. |
static Page |
InternalHelper.getPage(Field field) |
Page |
PdfPageStamp.getPdfPage()
Gets page which will be used as stamp.
|
Page |
Heading.getTocPage()
Gets the page that contains this heading.
|
Page |
PageCollection.getUnrestricted(int index)
Returns page by its index.
|
Page |
PageCollection.insert(int pageNumber)
Insert empty apge into collection at the specified position.
|
Page |
PageCollection.insert(int pageNumber,
Page entity)
Inserts page into page collection at specified place.
|
Modifier and Type | Method and Description |
---|---|
static com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Page> |
InternalHelper.getUnrestricted(PageCollection pages) |
Iterator<Page> |
PageCollection.iterator()
Returns enumerator of pages.
|
Modifier and Type | Method and Description |
---|---|
static void |
Redaction._RedactText(Page page,
Rectangle rect) |
void |
PageCollection.add_Rename_Namesake(Page entity)
Adds page to collection.
|
Page |
PageCollection.add(Page entity)
Adds page to collection.
|
void |
PageCollection.add(Page[] pages)
Adds to collection all pages from array.
|
static void |
InternalHelper.addButton(Page _currentPage,
Rectangle convertRect,
boolean isShowFieldsBorders,
com.aspose.html.HTMLInputElement as,
IDocument _document) |
static void |
InternalHelper.addImageInternal(Page p,
com.aspose.ms.System.IO.Stream imageStream,
Rectangle imageRect) |
static com.aspose.ms.System.Collections.Generic.List<Operator> |
InternalHelper.addImageInternal(Page page,
com.aspose.ms.System.IO.Stream stream,
Rectangle rectangle,
Matrix rotationMatrix,
CompositingParameters compositingParameters,
com.aspose.pdf.engine.data.IPdfObject[] pdfObject) |
static void |
InternalHelper.annotation_setPage(Annotation radio,
Page _currentPage) |
abstract int |
InternalHelper.InternalLogic.TestHelper.ColorDetectHelper_getColorType(Page page) |
int |
InternalHelper.InternalLogic.ForbidenFunctionalityForReleasedProduct.ColorDetectHelper_getColorType(Page page) |
int |
InternalHelper.InternalLogic.TestUnitFunctional.ColorDetectHelper_getColorType(Page page) |
boolean |
PageCollection.contains(Page item)
Determines whether this instance contains the object.
|
void |
IColorSpaceConversionStrategy.convert(Page page)
Converts the page of document.
|
void |
RgbToDeviceGrayConversionStrategy.convert(Page page)
Converts the page of document.
|
void |
PageCollection.copyTo(Page[] array,
int index)
Copyies pages into document.
|
static Annotation |
Annotation.createAnnotation(com.aspose.pdf.engine.data.IPdfObject annotEngineObj,
Page page)
For internal usage only
Initializes annotation from PDF object which describes the annotation.
|
static XYZExplicitDestination |
XYZExplicitDestination.createDestination(Page page,
double left,
double top,
double zoom,
boolean considerRotation)
Create destination to specified location of the page considering page rotation if required.
|
static ExplicitDestination |
ExplicitDestination.createDestination(Page page,
int type,
double... values)
Creates instances of ExplicitDestination descendant classes.
|
static XYZExplicitDestination |
XYZExplicitDestination.createDestinationToUpperLeftCorner(Page page)
Create destination to specified page.
|
static XYZExplicitDestination |
XYZExplicitDestination.createDestinationToUpperLeftCorner(Page page,
double zoom)
Create destination to upper left corner of the specified page.
|
static XForm |
XForm.createNewForm(Page source,
IDocument document)
Creates XForm which duplicates contents of the page.
|
static XForm |
InternalHelper.createNewForm(Page source,
com.aspose.pdf.engine.data.ITrailerable trailerable,
Copier copier) |
static XForm |
XForm.createNewForm(Page source,
com.aspose.pdf.engine.data.ITrailerable trailerable,
Copier copier) |
static void |
InternalHelper.FormattedFragment_copyResources(Page _userPage,
Page _currentPage) |
static void |
Redaction.getredactArea(Page page,
Rectangle rect,
Color color)
get redact Area
|
static Resources |
InternalHelper.getResourcesFor(Page page) |
static void |
InternalHelper.htmlFragment_copyResources(Page srcPage,
Page destPage) |
int |
PageCollection.indexOf(Page entity)
Returns index of the specified page.
|
Page |
PageCollection.insert(int pageNumber,
Page entity)
Inserts page into page collection at specified place.
|
void |
PageCollection.insert(int pageNumber,
Page[] pages)
Inserts pages of the array into document.
|
abstract void |
Page.BeforePageGenerate.invoke(Page page)
Invoke method
|
static void |
InternalHelper.page_SetPageNumber(Page page,
int number) |
static void |
InternalHelper.page_updateContents(Page page) |
static TextParagraph |
InternalHelper.PageGenerator_getTextParagraph(TextFragment fragment,
Rectangle rect,
Page page,
boolean isHorizontalAlignmentSet,
int alignment,
int verticalAlignment,
boolean isWordWrapped) |
static void |
InternalHelper.processHyperlink(BaseParagraph bp,
Page page,
Rectangle rect) |
void |
ImageStamp.put(Page page)
Adds graphic stamp on the page.
|
void |
PageNumberStamp.put(Page page)
Adds page number.
|
void |
PdfPageStamp.put(Page page)
Put stamp on the specified page.
|
abstract void |
Stamp.put(Page page)
Adds stamp on the page.
|
void |
TextStamp.put(Page page)
Adds textual stamp on the page.
|
static void |
Redaction.redactAnnotations(Page page,
Rectangle rect)
Removes Annotation which is in required rectangle
|
static void |
Redaction.redactArea(Page page,
Rectangle rect,
Color color)
For Internal Usage only get redact Area
|
static void |
Redaction.redactAreaInternal(Page page,
Rectangle rect,
com.aspose.ms.System.Drawing.Color color,
boolean exactArea) |
static void |
Redaction.redactImages(Page page,
Rectangle rect,
Color color)
Removes images (or redacts contents of the image is image is partially covered by rectangle)
|
static void |
Redaction.redactText(Page page,
Rectangle rect)
Removes text which is in requried rectangle
|
static void |
InternalHelper.registerObservation(Page notificationPage,
String format) |
static void |
InternalHelper.releaseResources(Page page) |
boolean |
PageCollection.remove(Page item)
Removes the specified item.
|
void |
TextFragmentAbsorber.removeAllText(Page page)
Removes all text from the specified page.
|
void |
TextFragmentAbsorber.removeAllText(Page page,
Rectangle rect)
Removes text inside the specified rectangle from the specified page.
|
void |
TableAbsorber.replace(Page page,
AbsorbedTable oldTable,
Table newTable)
Replaces an
AbsorbedTable with Table on the page. |
static void |
InternalHelper.Resources_releaseResourcesFor(Page page) |
void |
Heading.setDestinationPage(Page value)
sets the destination page.
|
void |
Artifact.setPdfPage(Page page)
Sets PDF page which is placed on the document page as artifact.
|
void |
PdfPageStamp.setPdfPage(Page value)
Sets page which will be used as stamp.
|
void |
Heading.setTocPage(Page value)
Sets the page that contains this heading.
|
static void |
InternalHelper.setTransition(Page page,
com.aspose.pdf.engine.data.IPdfDictionary transition) |
static boolean |
InternalHelper.TextExtractionVerifier_hasErrors(Page page,
com.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.engine.commondata.text.segmenting.PhysicalTextSegment> physicalTextSegments,
com.aspose.ms.System.Collections.Generic.List<TextExtractionError>[] referenceTo_errorList) |
void |
ImagePlacementAbsorber.visit(Page page)
Performs search on the specified page.
|
void |
ParagraphAbsorber.visit(Page page)
Performs search on the specified
Page . |
void |
TableAbsorber.visit(Page page)
Extracts tables on the specified page
The example demonstrates how to extract table on the first PDF document page.
// Open document
Document doc = new Document(@"D:\Tests\input.pdf");
// Create TableAbsorber object to find tables
TableAbsorber absorber = new TableAbsorber();
// Visit first page with absorber
absorber.visit(pdfDocument.getPages.get_item(1));
// Get access to first table on page, their first cell and text fragments in it
TextFragment fragment = absorber.getTableList().get_item(0).getRowList.get_item(0).getCellList().get_item(0)
.getTextFragments.get_item(1);
// Change text of the first text fragment in the cell
fragment.setText ("hi world");
// Save document
doc.save(@"D:\Tests\output.pdf");
|
void |
TextAbsorber.visit(Page page)
Extracts text on the specified page
The example demonstrates how to extract text on the first PDF document page.
// open document
Document doc = new Document(inFile);
// create TextAbsorber object to extract text
TextAbsorber absorber = new TextAbsorber();
// accept the absorber for all document's pages
absorber.visit(doc.getPages(1));
// get the extracted text
String extractedText = absorber.getText();
|
void |
TextFragmentAbsorber.visit(Page page)
Performs search on the specified page.
|
void |
TextParagraphAbsorber.visit(Page page)
Performs search on the specified page.
|
Modifier and Type | Method and Description |
---|---|
void |
PageCollection.add(Iterable<Page> pages)
Adds to collection all pages from list.
|
void |
PageCollection.add(List<Page> pages)
Adds to collection all pages from list.
|
void |
PageCollection.insert(int pageNumber,
Iterable<Page> pages)
Inserts pages from the collection into document.
|
void |
PageCollection.insert(int pageNumber,
List<Page> pages)
Inserts pages from the collection into document.
|
Constructor and Description |
---|
AnnotationCollection(Page page)
Constructor of AnnotationCollection.
|
BarcodeField(Page page,
Rectangle rect)
Initializes new instance of the
BarcodeField class. |
ButtonField(Page page,
Rectangle rect)
ButtonField constructor.
|
CaretAnnotation(Page page,
Rectangle rect)
Creates new Caret annotation on the specified page.
|
CheckboxField(Page page,
Rectangle rect)
Constructor for CheckboxField class.
|
ChoiceField(Page page,
Rectangle rect)
Constructor for ChoiceField.
|
CircleAnnotation(Page page,
Rectangle rect)
Creates new Circle annotation on the specified page.
|
ComboBoxField(Page page,
Rectangle rect)
Constructor for ComboBox Field.
|
ContentsAppender(Page page)
Initializez new instance of the contents appender with page attached
|
FileAttachmentAnnotation(Page page,
Rectangle rect,
FileSpecification fileSpec)
Creates new FileAttachment annotation on the specified page.
|
FitBExplicitDestination(Page page)
Creates the instance and initializes it by DOM page object.
|
FitBHExplicitDestination(Page page,
double top)
Creates the instance and initializes it by DOM page object and top parameter.
|
FitBVExplicitDestination(Page page,
double left)
Creates the instance and initializes it by DOM page object and left parameter.
|
FitExplicitDestination(Page page)
Creates local explicit destination.
|
FitHExplicitDestination(Page page,
double top)
Creates the instance and initializes it by DOM page object and top parameter.
|
FitRExplicitDestination(Page page,
double left,
double bottom,
double right,
double top)
Creates the instance and initializes it by DOM page object and visible parameters.
|
FitVExplicitDestination(Page page,
double left)
Creates the instance and initializes it by DOM page object and left parameter.
|
FreeTextAnnotation(Page page,
Rectangle rect,
DefaultAppearance appearance)
Creates new FreeText annotation on the specified page.
|
GoToAction(Page page)
Constructor for GoToAction class.
|
GoToAction(Page page,
int type,
double... values)
Constructor for GoToAction class.
|
Group(Page page)
The constructor.
|
HighlightAnnotation(Page page,
Rectangle rect)
Creates new Highlight annotation on the specified page.
|
InkAnnotation(Page page,
Rectangle rect,
List<Point[]> inkList)
Creates new Ink annotation on the specified page.
|
LineAnnotation(Page page,
Rectangle rect,
Point start,
Point end)
Creates new Line annotation on the specified page.
|
LinkAnnotation(Page page,
Rectangle rect)
Creates new Link annotation on the specified page.
|
ListBoxField(Page page,
Rectangle rect)
Creates new ListBox field.
|
MovieAnnotation(Page page,
Rectangle rect,
String movieFile)
Creates new Sound annotation on the specified page.
|
PDF3DAnnotation(Page page,
Rectangle rect,
PDF3DArtwork pdf3DArtwork)
Initializes a new instance of the
PDF3DAnnotation class. |
PDF3DAnnotation(Page page,
Rectangle rect,
PDF3DArtwork pdf3DArtwork,
int activation)
Initializes a new instance of the
PDF3DAnnotation class. |
PdfPageStamp(Page pdfPage)
Constructor of PdfPageStamp.
|
PolygonAnnotation(Page page,
Rectangle rect,
Point[] vertices)
Creates new Polygon annotation on the specified page.
|
PolylineAnnotation(Page page,
Rectangle rect,
Point[] vertices)
Creates new Polyline annotation on the specified page.
|
PopupAnnotation(Page page,
Rectangle rect)
Creates new Popup annotation on the specified page.
|
RadioButtonField(Page page)
Constructor for RadiouttonField
|
RadioButtonField(Page page,
Rectangle rect)
Sets radio button field
|
RadioButtonOptionField(Page page,
Rectangle rect)
Creates radiobutton in the specified rectangle on specified page.
|
RedactionAnnotation(Page page,
Rectangle rect)
Constructor for RedactAnnotation.
|
RichMediaAnnotation(Page page,
Rectangle rect) |
RichTextBoxField(Page page,
Rectangle rect)
Constructor for Rich Text Box field.
|
RichTextBoxField(Page page,
Rectangle rect)
Constructor for Rich Text Box field.
|
ScreenAnnotation(Page page,
Rectangle rect,
String mediaFile)
Creates new Screen annotation on the specified page.
|
SignatureField(Page page,
Rectangle rect)
Initializes new instance of the
SignatureField class. |
SoundAnnotation(Page page,
Rectangle rect,
String soundFile)
Creates new Sound annotation on the specified page.
|
SoundAnnotation(Page page,
Rectangle rect,
String soundFile,
SoundSampleData soundSampleData)
Creates new Sound annotation on the specified page.
|
SquareAnnotation(Page page,
Rectangle rect)
Creates new Square annotation on the specified page.
|
SquigglyAnnotation(Page page,
Rectangle rect)
Creates new Squiggly annotation on the specified page.
|
StampAnnotation(Page page,
Rectangle rect)
Creates new Stamp annotation on the specified page.
|
StrikeOutAnnotation(Page page,
Rectangle rect)
Creates new StrikeOut annotation on the specified page.
|
TextAnnotation(Page page,
Rectangle rect)
Creates new Text annotation on the specified page.
|
TextBoxField(Page page,
Rectangle rect)
Constructor of TextBox field.
|
TextBuilder(Page page)
Initializes a new instance of
TextBuilder class for the Pdf page. |
TextBuilder(Page page,
BaseOperatorCollection operatorCollection)
Initializes a new instance of
TextBuilder class for the Pdf page. |
UnderlineAnnotation(Page page,
Rectangle rect)
Creates new Underline annotation on the specified page.
|
WatermarkAnnotation(Page page,
Rectangle rect)
Constuctore for Watermark annotation class.
|
XYZExplicitDestination(Page page,
double left,
double top,
double zoom)
Creates the instance and initializes it by DOM page object and visible parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
BmpDevice.process(Page page,
com.aspose.ms.System.Drawing.Graphics gr)
renders page on the graphics
|
void |
GraphicsDevice.process(Page page,
com.aspose.ms.System.Drawing.Graphics gr)
renders page on the graphics
|
void |
PageDevice.process(Page page,
com.aspose.ms.System.Drawing.Graphics gr)
Renders page on the graphics
|
void |
BmpDevice.process(Page page,
OutputStream output)
Converts the page into bmp and saves it in the output stream.
|
void |
EmfDevice.process(Page page,
OutputStream output)
Converts the page into emf and saves it in the output stream.
|
void |
GifDevice.process(Page page,
OutputStream output)
Converts the page into gif and saves it in the output stream.
|
void |
JpegDevice.process(Page page,
OutputStream output)
Converts the page into jpeg and saves it in the output stream.
|
void |
PageDevice.process(Page page,
OutputStream output)
Performs some operation on the given page, e.g. converts page into graphic image.
|
void |
PngDevice.process(Page page,
OutputStream output)
Converts the page into png and saves it in the output stream.
|
void |
TextDevice.process(Page page,
OutputStream output)
Convert page and save it as text stream.
|
void |
GraphicsDevice.process(Page page,
com.aspose.ms.System.IO.Stream output)
Perfoms some operation on the given page, e.g. converts page into graphic image.
|
void |
PageDevice.process(Page page,
String outputFileName)
Performs some operation on the given page and saves results into the file.
|
void |
BmpDevice.processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
For Internal usage only!
|
void |
EmfDevice.processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Converts the page into emf and saves it in the output stream.
|
void |
GifDevice.processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Converts the page into gif and saves it in the output stream.
|
void |
GraphicsDevice.processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
internal method
|
void |
JpegDevice.processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Converts the page into jpeg and saves it in the output stream.
|
abstract void |
PageDevice.processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Performs some operation on the given page, e.g. converts page into graphic image.
|
void |
PngDevice.processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Converts the page into png and saves it in the output stream.
|
void |
TextDevice.processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Convert page and save it as text stream.
|
static void |
InternalHelper.processMarkedContentPresentation(ImageDevice markedContentDevice,
Page page,
String path) |
BufferedImage |
PngDevice.processToBufferedImage(Page page)
Converts the page into BufferedImage.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
InternalHelper.process(Graph graph,
double[] referenceToCurX,
double[] referenceToCurY,
boolean isNextParagraphInline,
com.aspose.ms.System.Collections.Generic.List<Operator> operators,
Page page) |
static void |
InternalHelper.setTransparency(Page page,
Color color,
Color strokeColor,
com.aspose.ms.System.Collections.Generic.List<Operator> operators) |
Modifier and Type | Method and Description |
---|---|
com.aspose.ms.System.IO.MemoryStream |
PdfConverter.convertPageToPNGMemoryStream(Page page)
For internal usage only
|
void |
PdfExtractor.extractMarkedContentAsImages(Page page,
String path)
Gets all the Marked Content containers as separate images.
|
Modifier and Type | Method and Description |
---|---|
Page |
TaggedContext.getCurrentPage() |
Modifier and Type | Method and Description |
---|---|
void |
TaggedContext.pageRegisterMCRElement(Page page,
MCRElement mcrElement) |
void |
TaggedContext.pageRegisterTableElement(Page page,
TableElement tableStructureElement) |
Modifier and Type | Method and Description |
---|---|
Page |
MCRElement.getPage()
Get Page instance
|
Modifier and Type | Method and Description |
---|---|
void |
MCRElement.setPage(Page value)
Set Page instance
|