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)
      • 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)
      • 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)
      • 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_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)
      • Operator_getTrailerable

        public static com.aspose.pdf.engine.data.ITrailerable Operator_getTrailerable(OperatorCollection oc)
      • 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)
      • 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)
      • 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)
      • 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)
      • 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)