driveutils

package
v0.0.0-...-a0e9b24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractPDF

func ExtractPDF(ctx context.Context, srvDrive *drive.Service, ID string) ([]byte, error)

ExtractPDF retrieves the PDF version of a Google Slides document from Google Drive. It uses the Drive API to export the file in "application/pdf" format.

Parameters: - ctx: The context for managing the API call lifecycle. - srvDrive: An authenticated instance of the Google Drive service. - ID: The file ID of the Google Slides document to export.

Returns: - A byte slice containing the exported PDF file. - An error if the operation fails.

func UploadImage

func UploadImage(ctx context.Context, srvDrive *drive.Service, img image.Image, name string) (string, error)

Upload an image on google drive and returns the public url

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL