HTML
JPG
PDF
XML
DOCX
PDF
Convert PDF to TEX in Go SDK
Export PDF documents to multiple formats including TEX with Aspose.PDF Cloud Go SDK
Get StartedHow to Convert PDF to TEX Using Go SDK
To convert PDF to TEX, we’ll use Aspose.PDF Cloud Go SDK This Cloud SDK SDK assists Go programmers in developing cloud-based PDF creator, annotator, editor, and converter apps using Go programming language via Aspose.PDF REST API. Use the following command from the Package Manager Console.
Package Manager Console Command
go get -u github.com/aspose-pdf-cloud/aspose-pdf-cloud-go/v25
Steps to Convert PDF to TEX via Go
Aspose.PDF Cloud Go developers can easily load & convert PDF to TEX in just a few lines of code.
- Uploading a PDF file to Aspose Cloud Storage.
- Converting the PDF to TEX format.
- Saving the output TEX in cloud storage.
This sample code shows PDF to TEX Cloud Go SDK Conversion
package main
import (
"fmt"
"path"
asposepdfcloud "github.com/aspose-pdf-cloud/aspose-pdf-cloud-go/v25"
)
func convertPdfToTex(pdf_api *asposepdfcloud.PdfApiService, pdf_name string, tex_name string, remote_folder string) {
outPath := path.Join(remote_folder, tex_name)
args := map[string]interface{}{
"folder": remote_folder,
}
result, httpResponse, err := pdf_api.PutPdfInStorageToTeX(pdf_name, outPath, args)
if err != nil {
fmt.Println(err.Error())
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
fmt.Println("Unexpected error!")
} else {
fmt.Println(result)
}
}
Other Supported Conversions
You can also convert many other file formats including few listed below.
BMP TO PDF (Bitmap Image)
CGM TO PDF (Microsoft Word Binary Format)
EMF TO PDF (Office 2007+ Words Document)
EPUB TO PDF (Enhanced Metafile Format)
GIF TO PDF (Graphical Interchange Format)
HTML TO PDF (Hyper Text Markup Language)
JPEG TO PDF (Joint Photographic Experts Group)
LATEX TO PDF (LaTeX Output Text)
PCL TO PDF (Printer Command Language)
MD TO PDF (Markdown)
PDF TO BMP (Bitmap Image)
PDF TO EPUB (E-book Format)
PDF TO GIF (Graphical Interchange Format)
PDF TO HTML (Hyper Text Markup Language)
PDF TO JPEG (Joint Photographic Experts Group)
PDF TO PDF/A (Portable Document Format)
PDF TO PNG (Portable Network Graphics)
PDF TO PPTX (Microsoft PowerPoint)
PDF TO SVG (Scalable Vector Graphics)
PDF TO TEX (Computer Graphics System)
PDF TO TIFF (Tagged Image Format)
PDF TO WORD (Microsoft Word Binary Format)
PDF TO XLSX (Microsoft Excel Open XML Format Spreadsheet file)
PDF TO XPS (XML Paper Specifications)
PNG TO PDF (Portable Network Graphics)
PS TO PDF (PostScript)
SVG TO PDF (Scalable Vector Graphics)
TEXT TO PDF (Text Document)
TIFF TO PDF (Tagged Image Format)
XPS TO PDF (XML Paper Specifications)