Glide
Prerequisites
- A PolyDoc account and API key — sign up for free, no credit card required. The free plan includes 150 PDF conversions per month.
- A Glide account — sign up for free, no credit card required.
Use Case 1: Generate PDFs from App Records
Add a button to your Glide app that triggers a webhook, calls PolyDoc via an automation tool, and displays the resulting PDF link back in the app.Action button → Webhook → Automation tool → PolyDoc API → Display result
Set up your Glide app and data
Create a Glide app (or open an existing one) and set up your data source. Use Glide Tables or a connected Google Sheet with the columns your PDF template needs (e.g. customer name, invoice number, amount). Add a URL column to store the generated PDF link.
/img/guides/glideapps/glideapps-uc1-app-data.pngAdd a webhook integration
In the Glide layout editor, add a Button component to your detail screen. Under the button's Actions, add a Webhook integration. Paste the webhook URL from your automation tool and configure the payload to include the current row's data fields.
/img/guides/glideapps/glideapps-uc1-webhook-integration.pngConnect to an automation tool
In your automation tool (e.g. Make or Zapier), create a scenario/Zap triggered by the webhook. The incoming payload contains the row data from Glide. Verify the fields are parsed correctly by running a test.
/img/guides/glideapps/glideapps-uc1-automation-tool.pngAdd the PolyDoc API call
Add an HTTP request step to call PolyDoc:
- URL:
https://api.polydoc.tech/pdf/convert - Method: POST
- Headers:
Authorization=Bearer YOUR_API_KEY(get from the Dashboard),X-Sandbox=true - Body: JSON mapping the webhook data to your PolyDoc template fields.
/img/guides/glideapps/glideapps-uc1-polydoc-call.pngReturn the PDF link to Glide
Store the PDF in cloud storage (e.g. Google Drive) and write the public URL back to the Glide table's PDF link column using the Glide API or a Google Sheets update step. The link appears in the app for the user to download.
/img/guides/glideapps/glideapps-uc1-return-link.pngUse Case 2: Automated PDF on Form Submit
Automatically generate and email a PDF when a user submits a form in your Glide app.Form submission → Webhook → PolyDoc API → Email
Create a form screen
In the Glide layout editor, add a Form screen (or use an Add Row action). Configure the form fields to collect the data needed for your PDF template (e.g. name, email, order details).
/img/guides/glideapps/glideapps-uc2-form-screen.pngAdd a webhook action on submit
In the form's On Submit actions, add a Webhook action. Configure the payload to include all form field values. Paste the webhook URL from your automation tool.
/img/guides/glideapps/glideapps-uc2-webhook-action.pngGenerate the PDF via PolyDoc
In the automation tool, add an HTTP step to call the PolyDoc API with the form data mapped to your template. The response contains the binary PDF.
/img/guides/glideapps/glideapps-uc2-generate-pdf.pngEmail the PDF to the user
Add an email step (e.g. Gmail or SMTP) to send the PDF to the user. Map the recipient to the email field from the form submission and attach the PDF from the previous step. Submit a test form entry to verify.
/img/guides/glideapps/glideapps-uc2-email-pdf.png