com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class InternalHelper



  • public class InternalHelper
    extends Object
    Internal class
    • Method Detail

      • setVentureLicense

        public static void setVentureLicense(Object licenseTarget,
                                             com.aspose.pdf.engine.licensemanagement.VentureLicense license)
      • new_DocumentElement

        public static Element new_DocumentElement(com.aspose.pdf.engine.data.PdfObject tagDocumentElementObj)
      • getEngineDict

        public static com.aspose.pdf.engine.data.IPdfDictionary getEngineDict(FileParams value)
      • setTextMatrix

        public static void setTextMatrix(TextState value,
                                         Matrix m)
      • getPhysicalSegment

        public static com.aspose.pdf.engine.commondata.text.segmenting.PhysicalTextSegment getPhysicalSegment(TextSegment value)
      • isCertified

        public static boolean isCertified(IDocument value)
      • isNotCheckMetadata

        public static boolean isNotCheckMetadata(IDocument value)
      • validateAnotations

        public static void validateAnotations(IDocument value)
      • drawBorder

        public static void drawBorder(BorderInfo border,
                                      Point leftTop,
                                      Point rightBottom,
                                      com.aspose.ms.System.Collections.Generic.List<Operator> operators,
                                      int cornerStyle)
      • addImage

        public static void addImage(SignatureField field,
                                    com.aspose.ms.System.IO.MemoryStream image)
      • getShapeByName

        public static Shape getShapeByName(String name)
      • PageGenerator_getTextParagraph

        public static TextParagraph PageGenerator_getTextParagraph(TextFragment fragment,
                                                                   Rectangle rect,
                                                                   Page page,
                                                                   boolean isHorizontalAlignmentSet,
                                                                   int alignment,
                                                                   int verticalAlignment,
                                                                   boolean isWordWrapped)
      • deserialize

        public static void deserialize(BorderInfo bInfo,
                                       com.aspose.ms.System.Xml.XmlReader reader)
      • serialize

        public static void serialize(BorderInfo bInfo,
                                     com.aspose.ms.System.Xml.XmlTextWriter writer)
      • serialize

        public static void serialize(TextFragment bInfo,
                                     com.aspose.ms.System.Xml.XmlTextWriter writer)
      • deserialize

        public static void deserialize(GraphInfo gInfo,
                                       com.aspose.ms.System.Xml.XmlReader reader)
      • serialize

        public static void serialize(GraphInfo gInfo,
                                     com.aspose.ms.System.Xml.XmlTextWriter writer)
      • isDefault

        public static boolean isDefault(GraphInfo gInfo)
      • deserialize

        public static void deserialize(BaseParagraph bp,
                                       com.aspose.ms.System.Xml.XmlReader reader)
      • getInternalFormat

        public static com.aspose.ms.System.Drawing.Imaging.ImageFormat getInternalFormat(ImageType imageType)
      • get_IsLicensed

        public static boolean get_IsLicensed()
      • hasNode

        public static boolean hasNode(XFA xfa,
                                      String fullName)
      • getFontCollection

        public static FontCollection getFontCollection(com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary resourceDictionary)
      • createDescriptionValueXml

        public static com.aspose.ms.System.Xml.XmlElement createDescriptionValueXml(com.aspose.ms.System.Xml.XmlDocument xmlDocument)
      • createDescriptionXml

        public static com.aspose.ms.System.Xml.XmlElement createDescriptionXml(com.aspose.ms.System.Xml.XmlDocument xmlDocument)
      • initializeSchemaValue

        public static void initializeSchemaValue(com.aspose.ms.System.Xml.XmlNode xmlNode,
                                                 XmpPdfAExtensionSchema schema)
      • createSchemasElement

        public static com.aspose.pdf.engine.collections.HashDictionary<String,XmpPdfAExtensionSchema> createSchemasElement(com.aspose.ms.System.Xml.XmlNode xmlNode)
      • getValuesXml

        public static void getValuesXml(XmpPdfAExtensionSchema schema,
                                        com.aspose.ms.System.Xml.XmlDocument xmlDocument,
                                        com.aspose.ms.System.Xml.XmlElement pdfAExtensionDescriptionValueElement)
      • getValuesXml

        public static com.aspose.ms.System.Xml.XmlElement getValuesXml(XmpPdfAExtensionSchema schema,
                                                                       com.aspose.ms.System.Xml.XmlDocument xmlDocument)
      • isImage

        public static boolean isImage(com.aspose.pdf.engine.data.IPdfPrimitive primitive)
      • newXImage

        public static XImage newXImage(com.aspose.pdf.engine.data.IPdfDataStream image)
      • operatorCollection_getCommands

        public static com.aspose.ms.System.Collections.Generic.List<Operator> operatorCollection_getCommands(OperatorCollection oc)
      • createNewForm

        public static XForm createNewForm(Page source,
                                          com.aspose.pdf.engine.data.ITrailerable trailerable,
                                          Copier copier)
      • setTransition

        public static void setTransition(Page page,
                                         com.aspose.pdf.engine.data.IPdfDictionary transition)
      • page_SetPageNumber

        public static void page_SetPageNumber(Page page,
                                              int number)
      • addImageInternal

        public static com.aspose.ms.System.Collections.Generic.List<Operator> addImageInternal(Page page,
                                                                                               com.aspose.ms.System.IO.Stream stream,
                                                                                               Rectangle rectangle,
                                                                                               Matrix rotationMatrix,
                                                                                               CompositingParameters compositingParameters,
                                                                                               com.aspose.pdf.engine.data.IPdfObject[] pdfObject)
      • addImageInternal

        public static void addImageInternal(Page p,
                                            com.aspose.ms.System.IO.Stream imageStream,
                                            Rectangle imageRect)
      • page_updateContents

        public static void page_updateContents(Page page)
      • htmlFragment_copyResources

        public static void htmlFragment_copyResources(Page srcPage,
                                                      Page destPage)
      • readFields

        public static void readFields(com.aspose.ms.System.IO.Stream stream,
                                      IDocument document,
                                      com.aspose.ms.System.Collections.Generic.List<String> foundFields,
                                      com.aspose.ms.System.Collections.Generic.List<String> notFound)
      • setFieldImageInternal

        public static void setFieldImageInternal(XFA xfa,
                                                 String fieldName,
                                                 com.aspose.ms.System.IO.Stream image)
      • flattenXfaField

        public static void flattenXfaField(com.aspose.ms.System.Xml.XmlNode field)
      • changePosition

        public static void changePosition(BaseParagraph bp,
                                          double[] curX,
                                          double[] curY,
                                          double newX,
                                          double newY,
                                          boolean isNextParagraphInline)
      • setImageInternal

        public static void setImageInternal(Signature sig,
                                            com.aspose.ms.System.IO.Stream _signatureAppearanceStream)
      • ResourcesCreate

        public static Resources ResourcesCreate(IDocument doc,
                                                com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary res)
      • toArray

        public static com.aspose.pdf.engine.data.PdfArray toArray(Rectangle rec,
                                                                  com.aspose.pdf.engine.data.ITrailerable trailerable)
      • newOutlineItemCollection

        public static OutlineItemCollection newOutlineItemCollection(com.aspose.pdf.engine.data.IPdfObject outlines)
      • newOperatorCollection

        public static OperatorCollection newOperatorCollection(com.aspose.pdf.engine.data.IPdfPrimitive contents)
      • newOperatorCollection

        public static OperatorCollection newOperatorCollection(com.aspose.pdf.engine.data.ITrailerable trailerable,
                                                               com.aspose.pdf.engine.data.IPdfPrimitive contents)
      • create

        public static Operator create(com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
      • Operator_create

        public static Operator Operator_create(int index,
                                               com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
      • Operator_get_bytes

        public static byte[] Operator_get_bytes(Operator op)
      • Operator_set_bytes

        public static void Operator_set_bytes(Operator op,
                                              byte[] bytes)
      • Operator_create

        public static Operator Operator_create(com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
      • Operator_TextShowOperator

        public static Operator Operator_TextShowOperator(int index,
                                                         com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
      • Operator_TextShowOperator

        public static Operator Operator_TextShowOperator(int index,
                                                         com.aspose.pdf.engine.commondata.pagecontent.operators.textshowing.ShowTextString string)
      • copyTo

        public static void copyTo(Metadata md,
                                  com.aspose.ms.System.Array array,
                                  int index)
      • getMatrix

        public static com.aspose.pdf.engine.data.IPdfArray getMatrix(Matrix m,
                                                                     com.aspose.pdf.engine.data.ITrailerable trailer)
      • newLineEndingsDrawer

        public static LineEndingsDrawer newLineEndingsDrawer(com.aspose.pdf.engine.data.IPdfArray lineEndings,
                                                             com.aspose.ms.System.Drawing.PointF startingPoint,
                                                             com.aspose.ms.System.Drawing.PointF endingPoint)
      • newLightweightOperatorCollection

        public static LightweightOperatorCollection newLightweightOperatorCollection(com.aspose.ms.System.Collections.Generic.List<Operator> operatorCollection)
      • add

        public static void add(FontCollection fc,
                               String resName,
                               com.aspose.pdf.engine.data.IPdfObject newFont)
      • newFont

        public static Font newFont(com.aspose.fonts.IFont font)
      • newFont

        public static Font newFont(com.aspose.pdf.engine.data.ITrailerable trailerable,
                                   com.aspose.pdf.engine.commondata.text.fonts.IPdfFont iPdfFont)
      • newFileSpecification

        public static FileSpecification newFileSpecification(com.aspose.pdf.engine.data.IPdfPrimitive specification)
      • newFileSpecification

        public static FileSpecification newFileSpecification(com.aspose.ms.System.IO.Stream stream,
                                                             String name,
                                                             String description)
      • newFileSpecification

        public static FileSpecification newFileSpecification(com.aspose.ms.System.IO.Stream stream,
                                                             String name)
      • explicitDestination_createDestination

        public static ExplicitDestination explicitDestination_createDestination(com.aspose.pdf.engine.data.IPdfArray engineDest)
      • iDocument_saveInternal

        public static void iDocument_saveInternal(IDocument iDocument,
                                                  com.aspose.ms.System.IO.Stream output)
      • document_addLocalFontPathInternal

        public static void document_addLocalFontPathInternal(String path)
      • document_restoreLocalFontPathInternal

        public static void document_restoreLocalFontPathInternal(boolean clearRegistry)
      • setFlatteningState

        public static void setFlatteningState(Annotation annotation,
                                              boolean value)
      • updateAppearances

        public static void updateAppearances(Annotation annotation)
      • getFontsDictionary

        public static com.aspose.pdf.engine.data.IPdfDictionary getFontsDictionary(FontCollection fc)
      • getTempDocument

        public static IDocument getTempDocument()
      • addOrReplace

        public static void addOrReplace(XImageCollection images,
                                        int index,
                                        com.aspose.ms.System.IO.Stream stream,
                                        int quality,
                                        boolean isBlackWhite,
                                        int filterType,
                                        int bitMask,
                                        boolean isMasked)
      • makeImageFromStream

        public static com.aspose.pdf.engine.data.IPdfDataStream makeImageFromStream(XImageCollection xic,
                                                                                    com.aspose.ms.System.IO.Stream stream,
                                                                                    int quality,
                                                                                    com.aspose.pdf.engine.data.ITrailerable parent)
      • replace

        public static void replace(XImageCollection images,
                                   int idx,
                                   com.aspose.ms.System.IO.Stream ms,
                                   int quality,
                                   boolean isBlackAndWhite)
      • deleteBySize

        public static com.aspose.pdf.engine.data.IPdfObject deleteBySize(XImageCollection value,
                                                                         XImage image)
      • deleteBySizeAndIndex

        public static com.aspose.pdf.engine.data.IPdfObject deleteBySizeAndIndex(XImageCollection value,
                                                                                 XImage image)
      • newXImageCollection

        public static XImageCollection newXImageCollection(Resources parent,
                                                           com.aspose.pdf.engine.data.IPdfDictionary xobject)
      • getEngineObject

        public static com.aspose.pdf.engine.data.IPdfObject getEngineObject(XImage value)
      • hasSMask

        public static boolean hasSMask(XImage image)
      • saveWithBlending

        public static void saveWithBlending(XImage value,
                                            com.aspose.ms.System.IO.Stream stream,
                                            int resolution)
      • getBlackAndWhite

        public static com.aspose.ms.System.Drawing.Image getBlackAndWhite(XImage image)
      • setVentureLicense

        public static void setVentureLicense(com.aspose.pdf.ADocument doc,
                                             com.aspose.pdf.engine.licensemanagement.VentureLicense value)
      • getVentureLicense

        public static com.aspose.pdf.engine.licensemanagement.VentureLicense getVentureLicense(IDocument doc)
      • registrySubstitution

        public static void registrySubstitution(Resources res,
                                                com.aspose.pdf.engine.commondata.text.fonts.IPdfFont oldFont,
                                                com.aspose.pdf.engine.commondata.text.fonts.IPdfFont newFont,
                                                com.aspose.pdf.engine.data.ITrailerable resources)
      • getNotifyAboutFontSubstitutions

        public static boolean getNotifyAboutFontSubstitutions(Resources res)
      • getDocumentStrategies

        public static com.aspose.pdf.engine.commondata.IDocumentSecondaryStrategies getDocumentStrategies(IDocument value)
      • registrySubstitution

        public static void registrySubstitution(com.aspose.pdf.engine.addressing.IRegistrar reg,
                                                com.aspose.fonts.FontDefinition oldFontDef,
                                                com.aspose.fonts.FontDefinition newFontDef)
      • registerEventAbsentFont

        public static void registerEventAbsentFont(com.aspose.pdf.engine.commondata.pagecontent.operators.OperationContext context,
                                                   String oldFontDef,
                                                   boolean[] tryToSubstitute)
      • setFastTextExtractionMode

        public static void setFastTextExtractionMode(BaseOperatorCollection bop,
                                                     boolean value)
      • getNewTempFileName

        public static String getNewTempFileName(String s)
      • deleteTempFileByName

        public static void deleteTempFileByName(String tempFile)
      • Form_getAcroFormFontsDictionary

        public static com.aspose.pdf.engine.data.IPdfDictionary Form_getAcroFormFontsDictionary(IDocument doc)
      • getcommandListIndex

        public static int getcommandListIndex(com.aspose.pdf.engine.commondata.text.segmenting.TextSegmentBuilder.OperatorLink opLink)
      • getResourcesFor

        public static Resources getResourcesFor(Page page)
      • getResourcesFor

        public static Resources getResourcesFor(XForm xForm)
      • Element_pdfObject

        public static com.aspose.pdf.engine.data.IPdfObject Element_pdfObject(Element el)
      • Element_EngineDict

        public static com.aspose.pdf.engine.data.IPdfDictionary Element_EngineDict(RootElement logicalStructure)
      • page_getMCID

        public static int page_getMCID(Page page)
      • page_setMCID

        public static void page_setMCID(Page page,
                                        int value)
      • TextFragment_setMarkedContentProperties

        public static void TextFragment_setMarkedContentProperties(TextFragment fragment,
                                                                   String tag,
                                                                   int mcid)
      • AssemblyConstants_ReleaseDate

        public static String AssemblyConstants_ReleaseDate()
      • EngineImg_get_Item

        public static com.aspose.pdf.engine.data.IPdfPrimitive EngineImg_get_Item(XImage image,
                                                                                  String bitsPerComponent)
      • FontSaveOptions

        public static com.aspose.pdf.engine.commondata.text.fonts.utilities.IDocumentFontSaveOptions FontSaveOptions(IDocument doc)
      • getTrailerable

        public static com.aspose.pdf.engine.data.ITrailerable getTrailerable(OperatorCollection contents)
      • TextState_toEngineColor

        public static com.aspose.pdf.engine.commondata.graphics.colors.IColor TextState_toEngineColor(Color backgroundColor)
      • pdfObject

        public static com.aspose.pdf.engine.data.IPdfObject pdfObject(Element el)
      • setMCID

        public static void setMCID(Page page,
                                   int value)
      • getMCID

        public static int getMCID(Page page)
      • setTaggedInfo

        public static void setTaggedInfo(Image image,
                                         int mcid)
      • new_FigureElement

        public static Element new_FigureElement(com.aspose.pdf.engine.data.PdfObject tagFigureElementObj)
      • setApsIntermediateFileIfAny

        public static void setApsIntermediateFileIfAny(SaveOptions options,
                                                       String s)
      • setXpsIntermediateFileIfAny

        public static void setXpsIntermediateFileIfAny(SaveOptions options,
                                                       String s)
      • XmpValue_toDateTimeInternal

        public static com.aspose.ms.System.DateTime XmpValue_toDateTimeInternal(XmpValue value)
      • XmpValue_toStructure

        public static com.aspose.pdf.engine.data.xmp.XmpField[] XmpValue_toStructure(XmpValue value)
      • XmpValue_toField

        public static com.aspose.pdf.engine.data.xmp.XmpField XmpValue_toField(XmpValue value)
      • getPage

        public static Page getPage(Field field)
      • XImage_isBitmapFilled

        public static boolean XImage_isBitmapFilled(com.aspose.ms.System.Drawing.Bitmap image,
                                                    byte b)
      • isInclude

        public static boolean isInclude(Rectangle cropBox,
                                        Rectangle rect,
                                        int i)
      • getEngineDict

        public static com.aspose.pdf.engine.data.IPdfDictionary getEngineDict(PdfAction action)
      • PdfFormatConversionOptions_getXml

        public static com.aspose.ms.System.Xml.XmlTextWriter PdfFormatConversionOptions_getXml(PdfFormatConversionOptions options)
      • PdfFormatConversionOptions_getOnlyValidation

        public static boolean PdfFormatConversionOptions_getOnlyValidation(PdfFormatConversionOptions options)
      • PdfFormatConversionOptions_setAdditionalParameters

        public static void PdfFormatConversionOptions_setAdditionalParameters(PdfFormatConversionOptions options,
                                                                              com.aspose.ms.System.Xml.XmlTextWriter xml,
                                                                              IDocument doc,
                                                                              boolean onlyValidation)
      • PdfFormatConversionOptions_getPuaProcessingTextStrategyExplicitlyDefined

        public static boolean PdfFormatConversionOptions_getPuaProcessingTextStrategyExplicitlyDefined(PdfFormatConversionOptions options)
      • addImageInternal

        public static void addImageInternal(XImageCollection images,
                                            com.aspose.ms.System.IO.MemoryStream stream)
      • setReadOnlyMode

        public static void setReadOnlyMode(OperatorCollection contents,
                                           boolean b)
      • addImagingEvaluationMark

        public static void addImagingEvaluationMark(IDocument doc,
                                                    com.aspose.imaging.Image image)
      • getfontSize

        public static double getfontSize(TextState textState)
      • getResourceDictionary

        public static com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary getResourceDictionary(Resources resources)
      • isMetafile

        public static com.aspose.ms.System.IO.Stream isMetafile(com.aspose.ms.System.IO.Stream stream)
      • FontCollection_getHash

        public static com.aspose.pdf.engine.collections.HashDictionary<String,Font> FontCollection_getHash(FontCollection fonts)
      • PdfFormatConversionOptions_getRemoveDuplicatedFonts

        public static boolean PdfFormatConversionOptions_getRemoveDuplicatedFonts(PdfFormatConversionOptions _conversionOptions)
      • PdfFormatConversionOptions_getRemoveSimilarFontsWithDifferentWidths

        public static boolean PdfFormatConversionOptions_getRemoveSimilarFontsWithDifferentWidths(PdfFormatConversionOptions _conversionOptions)
      • PdfFormatConversionOptions_getSubsetFonts

        public static boolean PdfFormatConversionOptions_getSubsetFonts(PdfFormatConversionOptions _conversionOptions)
      • get_IsObjectLicensed

        public static boolean get_IsObjectLicensed(IDocument document)
      • get_IsObjectLicensed

        public static boolean get_IsObjectLicensed()
      • meteredCountService_increaseCount

        public static void meteredCountService_increaseCount(double uploadMeteredSize)
      • restricted

        public static boolean restricted(com.aspose.pdf.engine.licensemanagement.VentureLicense _ventureLicense,
                                         int _printingPage)
      • restricted

        public static boolean restricted(com.aspose.pdf.ADocument doc,
                                         int _printingPage)
      • restrict

        public static void restrict(com.aspose.pdf.ADocument doc,
                                    int _printingPage)
      • restrict

        public static void restrict(com.aspose.pdf.ADocument doc,
                                    com.aspose.pdf.engine.collections.HashDictionary<String,Object> hash)
      • cutByRestriction

        public static void cutByRestriction(com.aspose.pdf.ADocument doc,
                                            com.aspose.ms.System.Array array)
      • cutByRestriction

        public static void cutByRestriction(com.aspose.pdf.ADocument doc,
                                            com.aspose.ms.System.Collections.IList array)
      • cutByRestriction

        public static void cutByRestriction(com.aspose.pdf.ADocument doc,
                                            com.aspose.ms.System.Collections.Generic.IGenericList array)
      • annotation_setPage

        public static void annotation_setPage(Annotation radio,
                                              Page _currentPage)
      • addButton

        public static void addButton(Page _currentPage,
                                     Rectangle convertRect,
                                     boolean isShowFieldsBorders,
                                     com.aspose.html.HTMLInputElement as,
                                     Document _document)
      • createDefaultResources

        public static void createDefaultResources(Form form)
      • releaseResources

        public static void releaseResources(Page page)
      • releaseResourcesFor

        public static void releaseResourcesFor(IDocument _document,
                                               com.aspose.pdf.engine.data.IPdfObject object)
      • Resources_releaseResourcesFor

        public static void Resources_releaseResourcesFor(Page page)
      • Resources_getResourceDictionary

        public static com.aspose.pdf.engine.commondata.pagecontent.IResourceDictionary Resources_getResourceDictionary(Resources r)
      • XImage_makeGrayscale

        public static com.aspose.ms.System.Drawing.Bitmap XImage_makeGrayscale(com.aspose.ms.System.IO.MemoryStream imgStream,
                                                                               IDocument document)
      • getBitmap

        public static com.aspose.ms.System.Drawing.Bitmap getBitmap(XImage image,
                                                                    boolean isOriginalImage)
      • FormattedFragment_copyResources

        public static void FormattedFragment_copyResources(Page _userPage,
                                                           Page _currentPage)
      • TextExtractionVerifier_hasErrors

        public static boolean 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)
      • new_Document

        public static Document new_Document(com.aspose.ms.System.IO.Stream outputStream,
                                            String password,
                                            boolean b)
      • fromCommand

        public static void fromCommand(Operator op,
                                       com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
      • isMassOperation

        public static boolean isMassOperation(TextEditOptions editOptions)
      • addCCITTFaxDecodeImageMask

        public static void addCCITTFaxDecodeImageMask(com.aspose.ms.System.IO.Stream stream,
                                                      com.aspose.pdf.engine.data.ITrailerable p,
                                                      int bitMask,
                                                      com.aspose.pdf.engine.data.IPdfDataStream img)