Aspose.PDF for Java 4.6.0의 공개 API 변경 사항
최신 버전 4.6.0에서는 모든 ms-classes를 제거했습니다. 따라서 내부 래퍼를 사용하는 것이 필요합니다. 이는 다음 클래스에 적용됩니다:
com.aspose.ms.System.Drawing.Imaging.ImageFormat -> com.aspose.pdf.ImageFormatInternal
com.aspose.ms.System.Text.TextEncoding -> com.aspose.pdf.TextEncodingInternal
com.aspose.html.HtmlDocumentType -> com.aspose.pdf.HtmlDocumentTypeInternal
이동됨:
com.aspose.pdf.facades.PageSize - 에서: com.aspose.pdf.PageSize
com.aspose.doc.wordcore.DocConverter - 에서: com.aspose.pdf.DocConverter
com.aspose.pdf.ITable - 에서: com.aspose.pdf.generator.legacyxmlmodel.ITable
com.aspose.pdf.ITableCell - 에서: com.aspose.pdf.generator.legacyxmlmodel.ITableCell
com.aspose.pdf.ITableRow - 에서: com.aspose.pdf.generator.legacyxmlmodel.ITableRow
추가됨:
패키지 com.aspose.pdf.drawing
그리고 다음 클래스:
com.aspose.pdf.drawing.Arc
com.aspose.pdf.drawing.Circle
com.aspose.pdf.drawing.Curve
com.aspose.pdf.drawing.Graph
com.aspose.pdf.drawing.Line
com.aspose.pdf.drawing.Rectangle
com.aspose.pdf.drawing.Shape
추가됨:
패키지 com.aspose.pdf.excel
그리고 다음 클래스:
com.aspose.pdf.excel.ColumnManager
com.aspose.pdf.excel.ContentManager
com.aspose.pdf.excel.DataKeeper
com.aspose.pdf.excel.DataManager
com.aspose.pdf.excel.ExcelConverterInternal
com.aspose.pdf.excel.ItemPropertyStore
com.aspose.pdf.excel.Log
com.aspose.pdf.excel.OverrideContentManager
com.aspose.pdf.excel.RegexManager
com.aspose.pdf.excel.SpreadSheetManager
com.aspose.pdf.excel.SSCell
com.aspose.pdf.excel.SSColumn
com.aspose.pdf.excel.SSConvertToXml
com.aspose.pdf.excel.SSFileComponents
com.aspose.pdf.excel.SSFont
com.aspose.pdf.excel.SSRow
com.aspose.pdf.excel.SSStyle
com.aspose.pdf.excel.SSTable
com.aspose.pdf.excel.SSWorkbook
com.aspose.pdf.excel.SSWorksheet
추가된 클래스:
com.aspose.pdf.exceptions.FontNotFoundException
com.aspose.pdf.generator.legacyxmlmodel.enums.InconsistentXmlImageParamsHandlingTypes
com.aspose.pdf.text.FontTypes
com.aspose.pdf.text.TextProcessingContext
com.aspose.pdf.EpubConverter
com.aspose.pdf.EpubLoadOptions
com.aspose.pdf.EpubSaveOptions
com.aspose.pdf.ExcelConverter
com.aspose.pdf.ExcelSaveOptions
com.aspose.pdf.FolderFontSource
com.aspose.pdf.GraphInfo
com.aspose.pdf.HtmlDocumentType
com.aspose.pdf.InvalidFormTypeOperationException
com.aspose.pdf.IWarningCallback
com.aspose.pdf.LatexLoadOptions
com.aspose.pdf.LatexToPdfConverter
com.aspose.pdf.MhtMainHtmlPart
com.aspose.pdf.MhtParcedPackage
com.aspose.pdf.MhtPart
com.aspose.pdf.MhtResourcePart
com.aspose.pdf.MhtToPdfConverter
com.aspose.pdf.MhtUtility
com.aspose.pdf.MobiXmlConverter
com.aspose.pdf.MobiXmlSaveOptions
com.aspose.pdf.ReturnAction
com.aspose.pdf.SvgConverter
com.aspose.pdf.WarningInfo
com.aspose.pdf.WarningType
다음 클래스의 변경 사항:
com.aspose.pdf.facades.AForm
SaveableFacade에서 확장됨
추가됨:
internal public static class FormImportResult
public FormImportResult[] getImportResult()
public void importXml(InputStream inputXmlStream)
public void extractXfaData(OutputStream outputXmlStream)
public void setXfaData(InputStream inputXmlStream)
public boolean isRequiredField(String fieldName)
public void importXml(InputStream inputXmlStream, boolean IgnoreFormTemplateChanges)
다음 메서드는 @Deprecated로 표시됨:
public String getSrcFileName()
public void setSrcFileName(String value)
public String getDestFileName()
public AForm(String srcFileName, String destFileName)
public AForm(String srcFileName, OutputStream destStream)
public AForm(InputStream srcStream, String destFileName)
public AForm(IDocument document, String destFileName)
com.aspose.pdf.facades.AFormEditor
추가됨:
public double getRadioButtonItemSize()
public void setRadioButtonItemSize(double value)
public int getFieldAppearance(String fieldName)
public boolean addFieldScript(String fieldName, String script)
다음 메서드는 @Deprecated로 표시되었습니다:
public String getSrcFileName()
public void setSrcFileName(String value)
public String getDestFileName()
public void setDestFileName(String value)
public AFormEditor(String srcFileName, String destFileName)
public void save()
public AFormEditor(IDocument document, String destFileName)
com.aspose.pdf.facades.AlignmentType
클래스가 @Deprecated로 표시되었습니다
추가됨:
public String toString()
com.aspose.pdf.facades.APdfFileEditor
추가됨:
public String getConversionLog()
public boolean getMergeDuplicateLayers()
public void setMergeDuplicateLayers(boolean value)
public boolean getMergeDuplicateOutlines()
public void setMergeDuplicateOutlines(boolean value)
public boolean getPreserveUserRights()
public void setPreserveUserRights(boolean value)
public boolean getIncrementalUpdates()
public void setIncrementalUpdates(boolean value)
public boolean getOptimizeSize()
public void setOptimizeSize(boolean value)
public static ContentsResizeParameters pageResize(double width, double height)
public static ContentsResizeParameters pageResizePct(double widthPct, double heightPct)
public boolean concatenate(Document[] src, Document dest)
public void splitToPages(String inputFile, String fileNameTemplate)
public void splitToPages(InputStream inputStream, String fileNameTemplate)
com.aspose.pdf.facades.APdfFileStamp
추가됨: public boolean getOptimizeSize()
public void setOptimizeSize(boolean value)
public int getStampId()
public void setStampId(int value)
com.aspose.pdf.facades.AutoFiller
ISaveableFacade를 구현함
다음 메서드는 @Deprecated로 표시되었습니다:
void setOutputStreamInternal(Stream value)
public String getInputFileName()
public void setInputFileName(String value)
public String getOutputFileName()
public void setOutputFileName(String value)
public void save()
추가: public InputStream getInputStream()
public void setInputStream(InputStream value)
public void save(String destFile)
public void save(OutputStream destStream)
public void bindPdf(String srcFile)
public void bindPdf(InputStream srcStream)
public void bindPdf(IDocument srcDoc)
public void close()
com.aspose.pdf.facades.Facade
추가:
public void bindPdf(InputStream srcStream, String password)
com.aspose.pdf.facades.Form
추가:
internal public static final class ImportStatus
com.aspose.pdf.facades.FormFieldFacade
다음 상수가 @Deprecated로 표시되었습니다:
public static final float BORDER_WIDTH_UNDIFIED = 0;
추가:
public static final float BORDER_WIDTH_UNDEFINED = -1;
com.aspose.pdf.facades.PdfAnnotationEditor
extends SaveableFacade
추가:
public void importAnnotationFromXfdf(InputStream xfdfSteam, int[] annotType)
public void importAnnotationFromXfdf(InputStream xfdfSteam)
public void exportAnnotationsXfdf(OutputStream xmlOutputStream, int start, int end, String[] annotTypes)
public void exportAnnotationsXfdf(OutputStream xmlOutputStream, int start, int end, int[] annotTypes)
com.aspose.pdf.facades.PdfBookmarkEditor
SaveableFacade를 확장
com.aspose.pdf.facades.PdfConverter
추가됨:
public boolean getShowHiddenAreas()
public void setShowHiddenAreas(boolean value)
com.aspose.pdf.facades.PdfFileEditor
추가됨:
public static final String E_EMPTY_PAGE_RANGE = “페이지 범위 배열이 설정되지 않았습니다”;
public static final String E_SMALL_PAGE_RANGE = “페이지 범위 배열은 두 개의 요소를 가져야 합니다”;
public static final String E_WRONG_PAGE_RANGE = “잘못된 페이지 범위”;
public boolean concatenate(Document[] src, Document dest)
public boolean resizeContents(InputStream source, OutputStream destination, int[] pages, ContentsResizeParameters parameters)
public boolean resizeContents(InputStream source, OutputStream destination, int[] pages,
public boolean resizeContentsPct(InputStream source, OutputStream destination, int[] pages, double newWidth, double newHeight)
public boolean addMargins(InputStream source, OutputStream destination, int[] pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin)
public boolean addMarginsPct(InputStream source, OutputStream destination, int[] pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin)
com.aspose.pdf.facades.PdfFileInfo
extends SaveableFacade
추가됨:
public java.util.Map getHeader()
public void setHeader(java.util.Map value)
public void save(OutputStream destStream)
다음 상수는 @Deprecated로 표시됨:
public String getInputFile()
public void setInputFile(String value)
public InputStream getInputStream()
public void setInputStream(InputStream value)
com.aspose.pdf.facades.PdfFileSecurity
extends SaveableFacade
다음 메서드는 @Deprecated로 표시됨:
public void setOutputFile(String value)
public PdfFileSecurity(String inputFile, String outputFile)
public PdfFileSecurity(IDocument document, String outputFile)
public PdfFileSecurity(IDocument document, OutputStream outputStream)
추가됨:
public void bindPdf(String srcFile)
public void bindPdf(InputStream srcStream)
public void close()
com.aspose.pdf.facades.PdfFileSignature
SaveableFacade를 상속
다음 상수가 @Deprecated로 표시됨:
public PdfFileSignature(String inputFile)
public PdfFileSignature(String inputFile, String outputFile)
public void save()
추가됨:
public void removeSignature(String signName, boolean removeField)
public java.util.Date getDateTime(String signName)
com.aspose.pdf.facades.PdfPageEditor
추가됨:
public java.util.Map getPageRotations()
public java.util.Map getPageRotations()
public int getHorizontalAlignment()
public void setHorizontalAlignment(int value)
public int getVerticalAlignmentType()
public void setVerticalAlignmentType(int value)
public java.awt.Rectangle getPageBoxSize(int page, String pageBoxName)
public void applyChanges()
다음 상수가 @Deprecated로 표시됨:
public AlignmentType getAlignment()
public void setAlignment(AlignmentType value)
public VerticalAlignmentType getVerticalAlignment()
public void setVerticalAlignment(VerticalAlignmentType value)
삭제됨:
public void setAlignment(AlignmentType value)
com.aspose.pdf.facades.PdfViewer
추가됨:
public boolean getShowHiddenAreas()
public void setShowHiddenAreas(boolean value)
public int getCopiesPrinted()
public void printLargePdf(InputStream inputStream, PrinterSettings printerSettings)
public void printLargePdf(InputStream inputStream, PageSettings pageSettings, PrinterSettings printerSettings)
public void bindPdf(InputStream srcStream)
com.aspose.pdf.facades.VerticalAlignmentType
@Deprecated로 표시됨
com.aspose.pdf.generator.legacyxmlmodel.EndNote
이름 변경: getNumberingContinuation_EndNote_New() to getNumberingContinuation() setNumberingContinuation_EndNote_New() to setNumberingContinuation()
com.aspose.pdf.generator.legacyxmlmodel.Image
추가됨:
public void load(XmlTextReader xmlReader, LoadingContext context)
com.aspose.pdf.generator.legacyxmlmodel.LegacyPdf
추가됨:
public int InconsistentXmlImageParamsHandlingType;
com.aspose.pdf.generator.legacyxmlmodel.Table
추가됨:
public int getColumnCount()
com.aspose.pdf.text.Font
com.aspose.pdf.Font와 중복되어 제거됨
com.aspose.pdf.ADocument
추가됨:
public boolean isPdfaCompliant()
public int getPdfaFormat()
com.aspose.pdf.Annotation
추가됨:
public int getHorizontalAlignment_Annotation_New()
public void setHorizontalAlignment_Annotation_New(int value)
다음 상수는 @Deprecated로 표시됨:
public int getAlignment()
public void setAlignment(int value)
com.aspose.pdf.AnnotationActionCollection
추가됨:
public PdfAction getOnModifyCharacter()
public void setOnModifyCharacter(PdfAction value)
public PdfAction getOnValidate()
public void setOnValidate(PdfAction value)
public PdfAction getOnFormat()
public void setOnFormat(PdfAction value)
public PdfAction getOnCalculate()
public void setOnCalculate(PdfAction value)
com.aspose.pdf.ApsToPdfConverter
추가됨:
public void visitFormFieldButton(ApsButton field)
com.aspose.pdf.BackgroundArtifact
추가됨:
public java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color value)
com.aspose.pdf.BaseParagraph
추가됨:
public int getHorizontalAlignment()
com.aspose.pdf.BorderInfo
변경 사항:
public CellBorderStyle getLeft() -> public GraphInfo getLeft()
public void setLeft(CellBorderStyle value) -> public void setLeft(GraphInfo value)
public CellBorderStyle getRight() -> public GraphInfo getRight()
public void setRight(CellBorderStyle value) -> public void setRight(GraphInfo value)
public CellBorderStyle getTop() -> public GraphInfo getTop()
public void setTop(CellBorderStyle value) -> public void setTop(GraphInfo value)
public BorderInfo(int borderSide, CellBorderStyle borderStyle) -> public BorderInfo(int borderSide, GraphInfo borderStyle)
추가됨:
public GraphInfo getBottom()
public void setBottom(GraphInfo value) public double getRoundedBorderRadius()
public void setRoundedBorderRadius(double value)
삭제됨:
public CellBorderStyle getBottom()
public void setBottom(CellBorderStyle value)
public double getRoundedBorderRadius()
public void setRoundedBorderRadius(double value)
com.aspose.pdf.BuildVersionInfo
이름 변경됨:
Assembly_version -> AssemblyVersion
File_version -> FileVersion
com.aspose.pdf.ButtonField
추가됨:
public ButtonField()
com.aspose.pdf.CellBorderStyle
클래스가 제거됨
com.aspose.pdf.CheckboxField
추가됨:
public java.util.ArrayList getAllowedStates()
public String getOnState()
com.aspose.pdf.ComboBoxField
추가됨:
public ComboBoxField()
com.aspose.pdf.Field
추가됨:
public int getPageIndex()
public static boolean getFitIntoRectangle()
public static void setFitIntoRectangle(boolean value)
com.aspose.pdf.FitBExplicitDestination
다음 상수가 @Deprecated로 표시됨:
public FitBExplicitDestination(Document document, int pageNumber)
추가됨:
public FitBExplicitDestination(int pageNumber)
com.aspose.pdf.FitBHExplicitDestination
다음 상수는 @Deprecated로 표시되었습니다:
public FitBHExplicitDestination(Document document, int pageNumber, double top)
추가됨:
public FitBHExplicitDestination(int pageNumber, double top)
com.aspose.pdf.FitBVExplicitDestination
다음 상수는 @Deprecated로 표시되었습니다:
public FitBVExplicitDestination(Document document, int pageNumber, double left)
추가됨:
public FitBVExplicitDestination(int pageNumber, double left)
com.aspose.pdf.FitHExplicitDestination
다음 상수는 @Deprecated로 표시되었습니다:
public FitHExplicitDestination(Document document, int pageNumber, double top)
추가됨:
public FitHExplicitDestination(int pageNumber, double top)
com.aspose.pdf.FitRExplicitDestination
다음 상수는 @Deprecated로 표시되었습니다:
public FitRExplicitDestination(Document document, int pageNumber, double left, double bottom, double right, double top)
추가됨:
public FitRExplicitDestination(int pageNumber, double left, double bottom, double right, double top)
com.aspose.pdf.FitVExplicitDestination
다음 상수가 @Deprecated로 표시되었습니다:
public FitVExplicitDestination(Document document, int pageNumber, double left)
추가됨:
public FitVExplicitDestination(int pageNumber, double left)
com.aspose.pdf.FontRepository 추가됨:
public static FontSubstitutionCollection getSubstitutions()
public static FontSourceCollection getSources()
public static Font openFont(InputStream fontStream,int fontType)
com.aspose.pdf.FontSource
변경사항:
public abstract FontDefinition[] getFontDefinitions() - > abstract FontDefinition[] getFontDefinitions()
com.aspose.pdf.Form
변경사항:
com.aspose.pdf.Form.getFields_Rename_Namesake() - 이름이 다음으로 변경됨: com.aspose.pdf.Form.getFields;
추가됨:
public void setType(int value)
public void add(Field field)
public void addFieldAppearance(Field field, int pageNumber, Rectangle rect)
com.aspose.pdf.FreeTextAnnotation
추가됨:
public int getStartingStyle()
public void setStartingStyle(int value)
public int getEndingStyle()
public void setEndingStyle(int value)
public DefaultAppearance getDefaultAppearanceObject()
com.aspose.pdf.HtmlSaveOptions
내부 클래스 추가됨:
public static final class HtmlImageType
public static class HtmlImageSavingInfo
public static class CssSavingInfo
public static class CssUrlRequestInfo
public interface ResourceSavingStrategy
public interface CssUrlMakingStrategy
public interface CssSavingStrategy
com.aspose.pdf.ImagePlacement
추가됨:
public int getRotation()
public void save(OutputStream outputStream)
public void save(OutputStream outputStream,ImageFormat format)
com.aspose.pdf.ListBoxField
추가됨:
public ListBoxField()
com.aspose.pdf.LoadOptions
추가됨:
public IWarningCallback getWarningHandler()
public void setWarningHandler
public String ApsIntermediateFileIfAny;
public String XpsIntermediateFileIfAny;
com.aspose.pdf.MarkupAnnotation
추가됨:
public java.util.Date getCreationDate()
com.aspose.pdf.Matrix
추가됨:
public IPdfArray getMatrix(ITrailerable trailer)
com.aspose.pdf.Page
ISupportsMemoryCleanup을 구현합니다.
추가됨:
public void setBackground(Color value)
com.aspose.pdf.PageCollection
추가됨:
public int indexOf(Page entity)
com.aspose.pdf.PageLabelCollection
변경사항:
UpdateLabel -> updateLabel
RemoveLabel -> removeLabel
GetPages -> getPages
com.aspose.pdf.PageSize
추가됨:
public static final float LEAVE_INTACT = -1;
com.aspose.pdf.RichTextBoxField
추가됨:
public RichTextBoxField(Page page, java.awt.Rectangle rect)
com.aspose.pdf.SaveOptions
내부 클래스 추가됨:
public static final class HtmlBorderLineType
public static class BorderPartStyle
public static class BorderInfo
public static final class NodeLevelResourceType
public static class ResourceSavingInfo
추가됨:
public IWarningCallback getWarningHandler()
public void setWarningHandler(IWarningCallback value)
public boolean getCloseResponse()
public void setCloseResponse(boolean value)
com.aspose.pdf.Signature
추가됨:
public java.util.Date getDate()
public void setDate(java.util.Date value)
public Signature(InputStream pfx, String password)
com.aspose.pdf.SignatureField
추가됨:
public void sign(Signature signature, InputStream pfx, String pass)
public void clear()
com.aspose.pdf.Stamp
추가됨:
public double getZoomX()
public void setZoomX(double value)
public double getWidth()
public void setWidth(double value)
public double getHeight()
public void setHeight(double value)
public double getZoomY()
public void setZoomY(double value)
com.aspose.pdf.SvgSaveOptions
내부 클래스 추가됨:
public interface EmbeddedImagesSavingStrategy
public static final class SvgExternalImageType
public static class SvgImageSavingInfo
추가됨:
public EmbeddedImagesSavingStrategy CustomStrategyOfEmbeddedImagesSaving
com.aspose.pdf.TextParagraph
추가됨:
public float getSubsequentLinesIndent()
public void setSubsequentLinesIndent(float value)
com.aspose.pdf.TextSearchOptions
추가됨:
public void isRegularExpressionUsed(boolean value)
com.aspose.pdf.TextStamp
추가됨:
public boolean getWordWrap()
public void setWordWrap(boolean value)
public boolean getJustify()
public void setJustify(boolean value)
public boolean getScale()
public void setScale(boolean value)
public double getWidth()
public void setWidth(double value)
public double getHeight()
public void setHeight(double value)
com.aspose.pdf.TextState
추가됨:
TextState( java.awt.Color backgroundColor, java.awt.Color foregroundColor, int fontStyle, Font font, float fontSize)
변경:
public java.awt.Color getForegroundColor() -> public com.aspose.pdf.Color getForegroundColor()
public void setForegroundColor(java.awt.Color value) -> public void setForegroundColor(com.aspose.pdf.Color value)
public java.awt.Color getBackgroundColor() -> public com.aspose.pdf.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color value) -> public void setBackgroundColor(com.aspose.pdf.Color value)
com.aspose.pdf.TextStyle
다음 메서드는 @Deprecated로 표시되었습니다:
public void setAlignment(int value)
public int getAlignment()
추가됨:
public void setHorizontalAlignment(int value)
public int getHorizontalAlignment()
public java.awt.Color getColor()
public void setColor(java.awt.Color value)
com.aspose.pdf.XfdfReader
추가됨:
public static void readAnnotations(InputStream stream,IDocument document)
public static void readFields(InputStream stream,Document document)
public static java.util.Map getElements(XmlReader reader)
변경 사항:
public static void readFields(Stream stream, IDocument document) -> public static void readFields(Stream stream, IDocument document, IList foundFields, IList notFoundFields)
com.aspose.pdf.XfdfTags
추가됨:
public static final String CalloutLine = “callout-line”;
public static final String TextRectangle = “text-recangle”;
com.aspose.pdf.XslFoLoadOptions
추가됨:
public boolean isUseOldXslFoEngine()
public void setUseOldXslFoEngine(boolean useOldXslFoEngine)
com.aspose.pdf.XYZExplicitDestination
다음 메서드가 @Deprecated로 표시되었습니다:
public XYZExplicitDestination(Document document, int pageNumber, double left, double top, double zoom)
추가됨:
public XYZExplicitDestination(int pageNumber, double left, double top, double zoom)
버전 4.4.0에서는 ms 라이브러리를 대체하기 위해 몇몇 “enum” 클래스가 생성되었고, 릴리스 4.6.0부터는 모든 ms-클래스를 공개 접근에서 제거해야 했습니다. 따라서 내부 래퍼를 사용하는 것이 필요합니다.
다음 클래스에 적용됩니다:
com.aspose.pdf.HtmlDocumentTypeInternal - com.aspose.html.HtmlDocumentType 대신 com.aspose.pdf.ImageFormatInternal - com.aspose.ms.System.Drawing.Imaging.ImageFormat 대신 com.aspose.pdf.TextEncodingInternal - com.aspose.ms.System.Text.TextEncoding 대신