Aspose.PDF for Go via C++
Aspose.PDF for Go via C++ allows developers manipulate them PDF files directly in the Go.
Types
Document
Document represents a PDF-document.
Functions
Convert from PDF functions
| Function | Description |
|---|
| SaveDocX | Convert and save the previously opened PDF-document as DocX-document. |
| SaveDoc | Convert and save the previously opened PDF-document as Doc-document. |
| SaveXlsX | Convert and save the previously opened PDF-document as XlsX-document. |
| SaveTxt | Convert and save the previously opened PDF-document as Txt-document. |
| SavePptX | Convert and save the previously opened PDF-document as PptX-document. |
| SaveXps | Convert and save the previously opened PDF-document as Xps-document. |
| SaveTeX | Convert and save the previously opened PDF-document as TeX-document. |
| SaveEpub | Convert and save the previously opened PDF-document as Epub-document. |
| SaveBooklet | Convert and save the previously opened PDF-document as booklet PDF-document. |
| SaveNUp | Convert and save the previously opened PDF-document as N-Up PDF-document. |
| SaveMarkdown | Convert and save the previously opened PDF-document as Markdown-document. |
| SaveTiff | Convert and save the previously opened PDF-document as Tiff-document. |
| SaveDocXEnhanced | Convert and save the previously opened PDF-document as DocX-document with Enhanced Recognition Mode (fully editable tables and paragraphs). |
| SaveSvgZip | Convert and save the previously opened PDF-document as SVG-archive. |
| ExportFdf | Export from the previously opened PDF-document with AcroForm to FDF-document. |
| ExportXfdf | Export from the previously opened PDF-document with AcroForm to XFDF-document. |
| ExportXml | Export from the previously opened PDF-document with AcroForm to XML-document. |
| PageToJpg | Convert and save the specified page as Jpg-image. |
| PageToPng | Convert and save the specified page as Png-image. |
| PageToBmp | Convert and save the specified page as Bmp-image. |
| PageToTiff | Convert and save the specified page as Tiff-image. |
| PageToSvg | Convert and save the specified page as Svg-image. |
| PageToPdf | Convert and save the specified page as Pdf. |
| PageToDICOM | Convert and save the specified page as DICOM-image. |
Organize PDF functions
Core PDF functions
| Function | Description |
|---|
| New | Create a new PDF-document. |
| Open | Open a PDF-document with filename. |
| Save | Save the previously opened PDF-document. |
| SaveAs | Save the previously opened PDF-document with new filename. |
| Close | Release allocated resources for PDF-document. |
| SetLicense | Set license with filename. |
| ExtractText | Return the PDF-document contents as plain text. |
| WordCount | Return word count in PDF-document. |
| CharacterCount | Return character count in PDF-document. |
| Append | Append pages from another PDF-document. |
| AppendPages | Append selected pages from another PDF-document. |
| MergeDocuments | Create a new PDF-document by merging the provided PDF-documents. |
| SplitDocument | Create multiple new PDF-documents by extracting pages from the source PDF-document. |
| SplitAtPage | Split the PDF-document into two new PDF-documents. |
| Bytes | Return the contents of the PDF-document as a byte slice. |
| PageAdd | Add new page in PDF-document. |
| PageInsert | Insert new page at the specified position in PDF-document. |
| PageDelete | Delete specified page in PDF-document. |
| PageCount | Return page count in PDF-document. |
| PageWordCount | Return word count on specified page in PDF-document. |
| PageCharacterCount | Return character count on specified page in PDF-document. |
| PageIsBlank | Return page is blank in PDF-document. |
Miscellaneous
| Function | Description |
|---|
| About | Return metadata information about the Aspose.PDF for Go via C++. |
Types secondary
type ProductInfo struct {
Product string `json:"product"` // Name
Family string `json:"family"` // Family (e.g., "Aspose.PDF")
Version string `json:"version"` // Version
ReleaseDate string `json:"releasedate"` // Release date in ISO format (YYYY-MM-DD)
Producer string `json:"producer"` // Producer
IsLicensed bool `json:"islicensed"` // License status (true if licensed)
}
Constants
Enumeration of possible rotation values.
const (
RotationNone int32 = 0 // Non-rotated.
RotationOn90 int32 = 1 // Rotated on 90 degrees clockwise.
RotationOn180 int32 = 2 // Rotated on 180 degrees.
RotationOn270 int32 = 3 // Rotated on 270 degrees clockwise.
RotationOn360 int32 = 4 // Rotated on 360 degrees clockwise.
)
Enumeration of possible page size values.
const (
PageSizeA0 int32 = 0 // A0 size.
PageSizeA1 int32 = 1 // A1 size.
PageSizeA2 int32 = 2 // A2 size.
PageSizeA3 int32 = 3 // A3 size.
PageSizeA4 int32 = 4 // A4 size.
PageSizeA5 int32 = 5 // A5 size.
PageSizeA6 int32 = 6 // A6 size.
PageSizeB5 int32 = 7 // B5 size.
PageSizePageLetter int32 = 8 // PageLetter size.
PageSizePageLegal int32 = 9 // PageLegal size.
PageSizePageLedger int32 = 10 // PageLedger size.
PageSizeP11x17 int32 = 11 // P11x17 size.
)