PDF Xpansion SDK Reference
Total Page:16
File Type:pdf, Size:1020Kb
PDF Xpansion SDK 12 Reference soft Xpansion GmbH & Co. KG ● Königsallee 45, 44789 Bochum [email protected] ● www.soft-xpansion.com TABLE OF CONTENTS INTRODUCTION ................................................................................................................................................................ 5 System Requirements ................................................................................................................................................... 6 Installation of SDK ........................................................................................................................................................ 6 Contents of SDK package ........................................................................................................................................ 6 Reference SDK libraries in Your Projects .................................................................................................................... 7 Replace Trial License ................................................................................................................................................ 8 Update of SDK Files ................................................................................................................................................. 8 SDK Samples................................................................................................................................................................ 9 Redistribution of PDF Xpansion ..................................................................................................................................... 9 PDF XPANSION SDK ........................................................................................................................................................ 11 Getting Started .......................................................................................................................................................... 11 Load SDK Library ................................................................................................................................................... 11 SDK Entry Point ..................................................................................................................................................... 12 Using Document Viewer ........................................................................................................................................ 12 Error Handling / Exceptions .................................................................................................................................... 13 Combine, Convert, Import and Export Documents .................................................................................................. 13 Create, Edit or Explore the Page Content ................................................................................................................ 14 Use Metadata (XMP) in PDF Files ............................................................................................................................ 14 ZUGFeRD Invoices ................................................................................................................................................. 14 Document Viewer ...................................................................................................................................................... 14 Coordinate System and Unit of Measure ................................................................................................................ 15 .NET Forms Control ............................................................................................................................................... 16 .NET WPF Control ................................................................................................................................................. 18 UWP Control ........................................................................................................................................................ 20 ActiveX Control..................................................................................................................................................... 23 SX Namespace ........................................................................................................................................................... 24 IRefObject Interface / IDisposable Interface ............................................................................................................. 24 ObjPtr Class (Smart Ptr).......................................................................................................................................... 25 PDFXpansionSDK Class .......................................................................................................................................... 25 IApplication Interface ............................................................................................................................................ 26 IAppFactory Interface ............................................................................................................................................ 28 IAppSettings Interface ........................................................................................................................................... 33 IBaseDocument Interface ....................................................................................................................................... 33 ITextDocument Interface ........................................................................................................................................ 34 IImageDocument Interface ..................................................................................................................................... 35 IFragmentDocument Interface ................................................................................................................................ 35 ICompositeDocument Interface .............................................................................................................................. 35 IAcquisitionDocument Interface ............................................................................................................................. 36 ISearchProvider Interface ....................................................................................................................................... 36 IPrintProvider Interface........................................................................................................................................... 38 ISequentialStream Interface ................................................................................................................................... 41 ICryptoCert Interface ............................................................................................................................................. 42 ICryptoKey Interface .............................................................................................................................................. 42 Base Types ............................................................................................................................................................ 43 Enumerations ........................................................................................................................................................ 43 Structures ............................................................................................................................................................. 45 SX::Graphics Namespace ............................................................................................................................................ 49 IRegion Interface ................................................................................................................................................... 49 IBitmapData Data .................................................................................................................................................. 49 SX::Viewer Namespace ............................................................................................................................................... 51 IWinViewer Interface ............................................................................................................................................. 52 IViewer Interface ................................................................................................................................................... 53 IViewerCanvas ...................................................................................................................................................... 59 IViewerConfig ....................................................................................................................................................... 67 IViewableDocument .............................................................................................................................................. 67 IViewerEvents Interface / Delegate.......................................................................................................................... 68 IViewerEvent Interface ..........................................................................................................................................