Skip to main content

Documents & PDFs

Lido provides action formulas for creating documents from templates, combining and manipulating PDFs, extracting text, and performing OCR.


CREATEPDF

Creates a PDF document from a template.

Syntax:

=CREATEPDF(credential, template_name, output_ref)
=CREATEPDF(credential, template_name, output_ref, content, template_data, make_public, destination)

Parameters:

ParameterDescriptionRequired
credentialDocument service credential IDYes
template_nameName of the template to useYes
output_refCell reference to write the output URLYes
contentContent to populate the templateNo
template_dataTemplate variable valuesNo
make_publicWhether the output file should be publicly accessibleNo
destinationDestination folder for the output fileNo

CREATEGOOGLEDOC

Creates a Google Doc from a template. Same parameters as CREATEPDF.


CREATEGOOGLESLIDE

Creates a Google Slides presentation from a template. Same parameters as CREATEPDF.


CREATEGOOGLESHEET

Creates a new Google Sheet.

Syntax:

=CREATEGOOGLESHEET(credential, file_name, output_ref)
=CREATEGOOGLESHEET(credential, file_name, output_ref, content, sheet_name, make_public, destination)

Parameters:

ParameterDescriptionRequired
credentialGoogle credential IDYes
file_nameName for the new spreadsheetYes
output_refCell reference to write the output URLYes
contentData to populate the sheetNo
sheet_nameName for the worksheet tabNo
make_publicWhether the file should be publicly accessibleNo
destinationDestination folderNo

APPENDTOGOOGLEDOC

Appends content to an existing Google Doc.

Syntax:

=APPENDTOGOOGLEDOC(credential, url, content)
=APPENDTOGOOGLEDOC(credential, url, content, status_ref, prepend)

Parameters:

ParameterDescriptionRequired
credentialGoogle credential IDYes
urlGoogle Doc URLYes
contentContent to appendYes
status_refCell reference to write statusNo
prependIf true, prepends instead of appendsNo

COMBINEPDFS

Combines multiple PDF files into one.

Syntax:

=COMBINEPDFS(pdf_files, output_ref)
=COMBINEPDFS(pdf_files, output_ref, status_ref)

Parameters:

ParameterDescriptionRequired
pdf_filesURLs of the PDF files to combineYes
output_refCell reference to write the output URLYes
status_refCell reference to write statusNo

PICKPAGESFROMPDF

Extracts specific pages from a PDF file.

Syntax:

=PICKPAGESFROMPDF(pdf_file, page_range, output_ref)
=PICKPAGESFROMPDF(pdf_file, page_range, output_ref, status_ref)

Parameters:

ParameterDescriptionRequired
pdf_fileURL of the PDF fileYes
page_rangePages to extract (e.g., "1-3,5")Yes
output_refCell reference to write the output URLYes
status_refCell reference to write statusNo

RESIZEPDF

Resizes the pages of a PDF file.

Syntax:

=RESIZEPDF(pdf_file, width, height, output_ref)
=RESIZEPDF(pdf_file, width, height, output_ref, status_ref)

Parameters:

ParameterDescriptionRequired
pdf_fileURL of the PDF fileYes
widthNew page widthYes
heightNew page heightYes
output_refCell reference to write the output URLYes
status_refCell reference to write statusNo

GETPDFNUMBEROFPAGES

Returns the number of pages in a PDF file.

Syntax:

=GETPDFNUMBEROFPAGES(pdf_file, output_ref)
=GETPDFNUMBEROFPAGES(pdf_file, output_ref, status_ref)

Parameters:

ParameterDescriptionRequired
pdf_fileURL of the PDF fileYes
output_refCell reference to write the page countYes
status_refCell reference to write statusNo

EXTRACTTEXT

Extracts text content from a PDF file.

Syntax:

=EXTRACTTEXT(pdf_file, output_ref)
=EXTRACTTEXT(pdf_file, output_ref, status_ref)

Parameters:

ParameterDescriptionRequired
pdf_fileURL of the PDF fileYes
output_refCell reference to write the extracted textYes
status_refCell reference to write statusNo

EXTRACTTABLESFROMPDF

Extracts tables from a PDF file.

Syntax:

=EXTRACTTABLESFROMPDF(pdf_file, output_ref)
=EXTRACTTABLESFROMPDF(pdf_file, output_ref, status_ref)

Parameters:

ParameterDescriptionRequired
pdf_fileURL of the PDF fileYes
output_refCell reference to write the extracted tablesYes
status_refCell reference to write statusNo

IMPORTPDF

Imports PDF content into the spreadsheet.

Syntax:

=IMPORTPDF(pdf_file, output_ref)
=IMPORTPDF(pdf_file, output_ref, status_ref)

Parameters:

ParameterDescriptionRequired
pdf_fileURL of the PDF fileYes
output_refCell reference to write the contentYes
status_refCell reference to write statusNo

OCRMYPDF

Performs OCR on a scanned PDF to make it searchable.

Syntax:

=OCRMYPDF(pdf_file, language, output_ref)
=OCRMYPDF(pdf_file, language, output_ref, status_ref)

Parameters:

ParameterDescriptionRequired
pdf_fileURL of the PDF fileYes
languageOCR language (e.g., "eng")Yes
output_refCell reference to write the output URLYes
status_refCell reference to write statusNo