Skip to main content
Glama

export_doc_to_pdf

Convert a Google Doc into a PDF format and save it to Google Drive. Specify the document ID, email address, optional filename, and folder ID for storage. Retrieve confirmation with file details and links.

Instructions

Exports a Google Doc to PDF format and saves it to Google Drive.

Args: user_google_email: User's Google email address document_id: ID of the Google Doc to export pdf_filename: Name for the PDF file (optional - if not provided, uses original name + "_PDF") folder_id: Drive folder ID to save PDF in (optional - if not provided, saves in root)

Returns: str: Confirmation message with PDF file details and links

Input Schema

NameRequiredDescriptionDefault
document_idYes
folder_idNo
pdf_filenameNo
user_google_emailYes

Input Schema (JSON Schema)

{ "properties": { "document_id": { "title": "Document Id", "type": "string" }, "folder_id": { "default": null, "title": "Folder Id", "type": "string" }, "pdf_filename": { "default": null, "title": "Pdf Filename", "type": "string" }, "user_google_email": { "title": "User Google Email", "type": "string" } }, "required": [ "user_google_email", "document_id" ], "type": "object" }

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZatesloFL/google_workspace_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server