Skip to content

Orpalis/passportpdfsdk-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API client for openapi

Another brick in the cloud

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to https://passportpdfapi.com

Class Method HTTP request Description
ConfigApi ConfigGetAPIVersion Get /api/config/ConfigGetAPIVersion
ConfigApi ConfigGetMaxAllowedContentLength Get /api/config/ConfigGetMaxAllowedContentLength Gets the maximal length of a request content, in bytes.
ConfigApi ConfigGetSuggestedClientTimeout Get /api/config/ConfigGetSuggestedClientTimeout Gets the suggested client API timeout, in milliseconds.
ConfigApi ConfigGetSuggestedMaxClientThreads Get /api/config/ConfigGetSuggestedMaxClientThreads Gets the suggested maximum number of threads to be used simultaneously by a client application.
ConfigApi ConfigGetSupportedFonts Get /api/config/ConfigGetSupportedFonts Gets the list of supported fonts for text drawing operations.
ConfigApi ConfigGetSupportedOCRLanguages Get /api/config/ConfigGetSupportedOCRLanguages Gets the list of supported languages for OCR.
DocuViewareApi DocuViewareGetControl Post /api/docuvieware/DocuViewareGetControl Gets the HTML dom of a DocuVieware control.
DocuViewareApi DocuViewareGetVersion Get /api/docuvieware/DocuViewareGetVersion Get the DocuVieware engine version.
DocuViewareApi DocuViewareSave Post /api/docuvieware/DocuViewareSave Saves the document being handled by a specific DocuVieware control, in its current state.
DocumentApi DocumentClose Post /api/document/DocumentClose Closes a previously uploaded document.
DocumentApi DocumentGetPreview Post /api/document/DocumentGetPreview Gets the format, the page count and a thumbnail of a previously uploaded document.
DocumentApi DocumentLoad Post /api/document/DocumentLoad Loads the provided document file.
DocumentApi DocumentLoadFromURI Post /api/document/DocumentLoadFromURI Loads the provided document file from an URI.
DocumentApi DocumentLoadMultipart Post /api/document/DocumentLoadMultipart Loads the provided document file using Multipart Upload.
ImageApi ImageAdjust Post /api/image/ImageAdjust Adjusts a previously uploaded image.
ImageApi ImageAutoCrop Post /api/image/ImageAutoCrop Automatically crops a previously uploaded image.
ImageApi ImageCleanupDocument Post /api/image/ImageCleanupDocument Cleanup a previously uploaded image.
ImageApi ImageCloneRegions Post /api/image/ImageCloneRegions Clones regions from a previously uploaded image into new images.
ImageApi ImageClose Post /api/image/ImageClose Closes a previously uploaded image.
ImageApi ImageConvertColorDepth Post /api/image/ImageConvertColorDepth Converts the color depth of a previously uploaded image.
ImageApi ImageCrop Post /api/image/ImageCrop Crops a previously uploaded image.
ImageApi ImageDeletePage Post /api/image/ImageDeletePage Deletes a page range from a previously uploaded image.
ImageApi ImageDetectBlankPages Post /api/image/ImageDetectBlankPages Detects the blank page(s) from a previously uploaded image and offers to remove them.
ImageApi ImageDetectColor Post /api/image/ImageDetectColor Performs color detection on a previously uploaded image.
ImageApi ImageDetectPageOrientation Post /api/image/ImageDetectPageOrientation Detects the orientation of the page(s) of a previously uploaded image and offers to automatically rotate them.
ImageApi ImageFilter Post /api/image/ImageFilter Applies filters to a previously uploaded image.
ImageApi ImageGetPageThumbnail Post /api/image/ImageGetPageThumbnail Gets a thumbnail of each page within the provided page range from a previously uploaded image.
ImageApi ImageGetSupportedFileExtensions Get /api/image/ImageGetSupportedFileExtensions Gets the supported file extensions by the image loading actions.
ImageApi ImageLoad Post /api/image/ImageLoad Loads the provided image file. Supported image formats can be retrieved by the GetSupportedImageFileExtensions action.
ImageApi ImageLoadMultipart Post /api/image/ImageLoadMultipart Loads the provided image file using Multipart Upload. Supported image formats can be retrieved by the GetSupportedImageFileExtensions action.
ImageApi ImageMICR Post /api/image/ImageMICR Performs MICR (Magnetic Ink Character Recognition) on a previously uploaded image.
ImageApi ImageReadBarcodes Post /api/image/ImageReadBarcodes Reads barcodes from a previously uploaded image.
ImageApi ImageResize Post /api/image/ImageResize Resizes a previously uploaded image.
ImageApi ImageRotate Post /api/image/ImageRotate Rotates and/or flips a previously uploaded image.
ImageApi ImageSaveAsJPEG Post /api/image/ImageSaveAsJPEG Saves a previously uploaded image as JPEG, and sends the file data in a JSON-serialized object.
ImageApi ImageSaveAsJPEGFile Post /api/image/ImageSaveAsJPEGFile Saves a previously uploaded image as JPEG, and streams the file binary data to the response (this is the most efficient download method).
ImageApi ImageSaveAsPDF Post /api/image/ImageSaveAsPDF Saves a previously uploaded image as PDF, and sends the file data in a JSON-serialized object.
ImageApi ImageSaveAsPDFFile Post /api/image/ImageSaveAsPDFFile Saves a previously uploaded image as PDF, and streams the file binary data to the response (this is the most efficient download method).
ImageApi ImageSaveAsPDFMRC Post /api/image/ImageSaveAsPDFMRC Saves a previously uploaded image as PDF using MRC compression, and sends the file data in a JSON-serialized object.
ImageApi ImageSaveAsPDFMRCFile Post /api/image/ImageSaveAsPDFMRCFile Saves a previously uploaded image as PDF using MRC compression, and streams the file binary data to the response (this is the most efficient download method).
ImageApi ImageSaveAsPNG Post /api/image/ImageSaveAsPNG Saves a previously uploaded image as PNG, and sends the file data in a JSON-serialized object.
ImageApi ImageSaveAsPNGFile Post /api/image/ImageSaveAsPNGFile Saves a previously uploaded image as PNG, and streams the file binary data to the response (this is the most efficient download method).
ImageApi ImageSaveAsTIFF Post /api/image/ImageSaveAsTIFF Saves a previously uploaded image as TIFF, and sends the file data in a JSON-serialized object.
ImageApi ImageSaveAsTIFFFile Post /api/image/ImageSaveAsTIFFFile Saves a previously uploaded image as TIFF, and streams the file binary data to the response (this is the most efficient download method).
ImageApi ImageSaveAsTIFFMultipage Post /api/image/ImageSaveAsTIFFMultipage Saves a previously uploaded image as multipage TIFF, and sends the file data in a JSON-serialized object.
ImageApi ImageSaveAsTIFFMultipageFile Post /api/image/ImageSaveAsTIFFMultipageFile Saves a previously uploaded image as multipage TIFF, and streams the file binary data to the response (this is the most efficient download method).
ImageApi ImageSwapPages Post /api/image/ImageSwapPages Swaps two pages from a previously uploaded image.
PDFApi Annotate Post /api/pdf/Annotate Annotates a previously uploaded document.
PDFApi AutoDeskew Post /api/pdf/AutoDeskew Performs auto deskew on a page range of a previously uploaded document.
PDFApi ClearPage Post /api/pdf/ClearPage Clears a page range from a previously uploaded document.
PDFApi ClonePage Post /api/pdf/ClonePage Clones specific pages from a previously uploaded document to another previously uploaded document.
PDFApi ClosePDF Post /api/pdf/ClosePDF Closes a previously uploaded document.
PDFApi ConvertToPDFA Post /api/pdf/ConvertToPDFA Converts a previously uploaded document to PDF/A.
PDFApi DeletePage Post /api/pdf/DeletePage Deletes a page range from a previously uploaded document.
PDFApi DetectPageOrientation Post /api/pdf/DetectPageOrientation Detects the orientation of the page(s) of a previously uploaded document and offers to automatically rotate them.
PDFApi DigiSign Post /api/pdf/DigiSign Signs a previously uploaded document digitally.
PDFApi DrawImage Post /api/pdf/DrawImage Draws an image on a page range of a previously uploaded document.
PDFApi ExtractPage Post /api/pdf/ExtractPage Extracts a page range from a previously uploaded document into one or several new documents.
PDFApi ExtractText Post /api/pdf/ExtractText Extracts text from the document pages.
PDFApi Flatten Post /api/pdf/Flatten Flattens the form-fields, annotations, and/or the layers of a previously uploaded document.
PDFApi GetInfo Post /api/pdf/GetInfo Gets information about a previously uploaded document.
PDFApi GetPDFImportSupportedFileExtensions Get /api/pdf/GetPDFImportSupportedFileExtensions Gets the supported file extensions by the LoadDocumentAsPDF action.
PDFApi GetPageThumbnail Post /api/pdf/GetPageThumbnail Gets a thumbnail of each page within the provided page range from a previously uploaded document.
PDFApi InsertImage Post /api/pdf/InsertImage Inserts an image on a new page of a previously uploaded document.
PDFApi InsertNewPage Post /api/pdf/InsertNewPage Inserts one or more new blank pages to a specific position in a previously uploaded document.
PDFApi InsertPageNumber Post /api/pdf/InsertPageNumber Inserts page number(s) on a document.
PDFApi InsertText Post /api/pdf/InsertText Inserts text on a document.
PDFApi Linearize Post /api/pdf/Linearize Linearizes a previously uploaded document.
PDFApi LoadDocumentAsPDF Post /api/pdf/LoadDocument Imports the provided document as PDF. Supported document formats can be retrieved by the GetPDFImportSupportedFileExtensions action.
PDFApi LoadDocumentAsPDFMultipart Post /api/pdf/LoadDocumentAsPDFMultipart Imports the provided document as PDF using Multipart Upload. Supported document formats can be retrieved by the GetPDFImportSupportedFileExtensions action.
PDFApi Merge Post /api/pdf/Merge Merges several previously uploaded documents into a new PDF.
PDFApi MergePages Post /api/pdf/MergePages Merges multiple pages, vertically, within a previously uploaded document into one single page.
PDFApi MovePage Post /api/pdf/MovePage Moves a page range from a previously uploaded document.
PDFApi OCR Post /api/pdf/OCR Performs optical character recognition on a page range of a previously uploaded document. The recognized text is added as invisible text on each processed page. No token is charged for blank pages.
PDFApi Protect Post /api/pdf/Protect Protects a previously uploaded document.
PDFApi ReadBarcodes Post /api/pdf/ReadBarcodes Reads barcodes from a previously uploaded document.
PDFApi Reduce Post /api/pdf/Reduce Reduces the size of a previously uploaded document.
PDFApi RemovePageFormFields Post /api/pdf/RemovePageFormFields Removes the form fields from a page range of a previously uploaded document.
PDFApi RemoveText Post /api/pdf/RemoveText Removes text (all text or only invisible one) from a previously uploaded PDF.
PDFApi ReorderPages Post /api/pdf/ReorderPages Reorders pages of a previously uploaded document.
PDFApi RepairDocument Post /api/pdf/RepairDocument Repairs a previously uploaded PDF document.
PDFApi RotatePageStandard Post /api/pdf/RotatePageStandard Rotates (standardly) a page range from a previously uploaded document.
PDFApi SaveAsJPEG Post /api/pdf/SaveAsJPEG Saves a previously uploaded document as JPEG, and sends the file data in a JSON-serialized object.
PDFApi SaveAsJPEGFile Post /api/pdf/SaveAsJPEGFile Saves a previously uploaded document as JPEG, and streams the file binary data to the response (this is the most efficient download method).
PDFApi SaveAsPNG Post /api/pdf/SaveAsPNG Saves a previously uploaded document as PNG, and sends the file data in a JSON-serialized object.
PDFApi SaveAsPNGFile Post /api/pdf/SaveAsPNGFile Saves a previously uploaded document as PNG, and streams the file binary data to the response (this is the most efficient download method).
PDFApi SaveAsTIFF Post /api/pdf/SaveAsTIFF Saves a previously uploaded document as TIFF, and sends the file data in a JSON-serialized object.
PDFApi SaveAsTIFFFile Post /api/pdf/SaveAsTIFFFile Saves a previously uploaded document as TIFF, and streams the file binary data to the response (this is the most efficient download method).
PDFApi SaveAsTIFFMultipage Post /api/pdf/SaveAsTIFFMultipage Saves a previously uploaded document as multipage TIFF, and sends the file data in a JSON-serialized object.
PDFApi SaveAsTIFFMultipageFile Post /api/pdf/SaveAsTIFFMultipageFile Saves a previously uploaded document as multipage TIFF, and streams the file binary data to the response (this is the most efficient download method).
PDFApi SaveDocument Post /api/pdf/SaveDocument Saves a previously uploaded document as PDF, and sends the file data in a JSON-serialized object.
PDFApi SaveDocumentToFile Post /api/pdf/SaveDocumentToFile Saves a previously uploaded document as PDF, and streams the file binary data to the response (this is the most efficient download method).
PDFApi ScalePage Post /api/pdf/ScalePage Scales a page range from a previously uploaded document.
PDFApi SetInfo Post /api/pdf/SetInfo Sets information to a previously uploaded document.
PDFApi SetInitialView Post /api/pdf/SetInitialView Sets various document level initial view options to a previously uploaded document.
PDFApi SetPageBox Post /api/pdf/SetPageBox Sets pagebox to a page range from previously uploaded document.
PDFApi SetPassword Post /api/pdf/SetPassword Unprotects a previously uploaded document.
PDFApi Split Post /api/pdf/Split Splits a previously uploaded document into new ones.
PDFApi SwapPages Post /api/pdf/SwapPages Swaps two pages from a previously uploaded document.
PDFApi Unprotect Post /api/pdf/Unprotect Unprotects a previously uploaded document.
PassportManagerApi PassportManagerGetPassportInfo Get /api/passportmanager/PassportManagerGetPassportInfo
PassportPDFApplicationManagerApi PassportPDFApplicationManagerGetApplicationDownloadLink Get /api/passportpdfapplicationmanager/PassportPDFApplicationManagerGetApplicationDownloadLink
PassportPDFApplicationManagerApi PassportPDFApplicationManagerGetApplicationLatestVersion Get /api/passportpdfapplicationmanager/PassportPDFApplicationManagerGetApplicationLatestVersion
PassportPDFApplicationManagerApi PassportPDFApplicationManagerGetApplicationMinimumSupportedVersion Get /api/passportpdfapplicationmanager/PassportPDFApplicationManagerGetApplicationMinimumSupportedVersion
PassportPDFApplicationManagerApi PassportPDFApplicationManagerGetMaxClientThreads Get /api/passportpdfapplicationmanager/PassportPDFApplicationManagerGetMaxClientThreads Gets the maximum number of threads to be used simultaneously by a client application.

Documentation For Models

Documentation For Authorization

PassportPDFAuthentication

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
    Key: "APIKEY",
    Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

About

ORPALIS PassportPDF API Client SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published