Aspose.PDF for Go via C++
Contents
[
Hide
]Aspose.PDF for Go via C++ allows developers manipulate them PDF files directly in the Go.
Types
Document
Document represents a PDF-document.
type Document struct {
}
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. |
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
Function | Description |
---|---|
Optimize | Optimize PDF-document content. |
OptimizeResource | Optimize resources of PDF-document. |
Grayscale | Convert PDF-document to black and white. |
Rotate | Rotate PDF-document. |
SetBackground | Set PDF-document background color. |
Repair | Repaire PDF-document. |
PageRotate | Rotate page. |
PageSetSize | Set size of page. |
PageGrayscale | Convert page to black and white. |
PageAddText | Add text on page. |
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. |
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. |
ExtractText | Return the PDF-document contents as plain text. |
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.
)