Skip to content
Notis

Remove a generated PDF when its source document is deleted

Keep abandoned document outputs from lingering.

Trigger

Document Deleted

Triggers when an existing Google Doc is deleted (moved to trash). This trigger monitors Google Docs and fires when documents are trashed.

Action

Delete PDF

Tool to delete a previously generated pdf. use when you need to immediately remove a pdf by its response id.

Why this helps

Deleting a source document does not automatically remove generated PDF artifacts.

  • Reduce stale artifacts
  • Keep output storage tidy
  • Align file cleanup with document lifecycle

Setup

Build it in a few focused steps.

  • 1Connect Google Docs and Api2pdf in Notis.
  • 2Create an automation named Trashed document PDF cleanup.
  • 3Tell Notis to identify the associated Api2pdf response ID and delete that PDF.
  • 4Pick Document Deleted as the trigger.
  • 5Choose where run reports go, then test with one document and its known PDF response ID.

Questions about this workflow

What identifier is needed?

Api2pdf deletion uses the response ID of the generated PDF.

Can it delete unrelated PDFs?

Only identify the response IDs associated with the trashed document.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

Notis builds workflows that link Google Docs to Api2pdf. A trigger fires from one place; an action lands in another.

Google Docs triggers

Api2pdf actions

Recurring trigger

Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.

TriggerScheduled

Add Header Footer

Tool to add headers and footers to a pdf document. use when you need consistent page numbering, titles, or custom branding on every page.

ActionInstant

Webhook trigger

Notis starts this workflow when an external tool or custom backend sends an HTTP request.

TriggerInstant

Delete PDF

Tool to delete a previously generated pdf. use when you need to immediately remove a pdf by its response id.

ActionInstant

New Document Created

Triggers when a new Google Doc is created. This trigger monitors Google Docs and fires when new documents are detected. Uses timestamp filtering to efficiently poll for new documents.

TriggerPolling

Extract PDF Pages

Tool to extract specific pages from a pdf document. use when you need only certain pages from a larger pdf file.

ActionInstant

Document Deleted

Triggers when an existing Google Doc is deleted (moved to trash). This trigger monitors Google Docs and fires when documents are trashed.

TriggerPolling

LibreOffice PDF to HTML

Tool to convert a pdf document to html using libreoffice. use when you need html output of a pdf file (experimental; images may be excluded).

ActionInstant

Document Placeholder Filled

Triggers when a Google Doc's plain text changes such that a configured placeholder token/pattern is no longer present (i.e., the document has been filled in). This trigger monitors a specific Google Doc and fires when a placeholder pattern that was previously present is no longer found in the document's plain text.

TriggerPolling

LibreOffice Thumbnail

Tool to generate a thumbnail image of a document using libreoffice. use when you need a quick visual preview of a pdf or office file's first page.

ActionInstant

Document Search Update

Triggers when a Google Doc matching a user-defined search query is newly created or updated since the last poll. This trigger uses timestamp filtering to efficiently monitor documents.

TriggerPolling

Merge PDFs

Tool to merge multiple pdf documents into a single pdf. use when you need to concatenate several pdfs on the server-side.

ActionInstant

Document Structure Changed

Triggers when a Google Doc's structure changes (headers/footers added/removed, tables/images count changes). This trigger monitors a specific document for structural changes like: - Headers added or removed - Footers added or removed - Tables added or removed - Images (inline objects) added or removed - Positioned objects added or removed - Footnotes added or removed

TriggerPolling

Optimize PDF

Tool to optimize a pdf document to reduce file size while maintaining quality. use when you need to minimize storage or bandwidth for an existing pdf.

ActionInstant

Document Updated

Triggers when an existing Google Doc is updated or modified. This trigger monitors Google Docs and fires when documents are updated.

TriggerPolling

Reorder PDF Pages

Tool to reorder pages of a pdf document. use when you need to rearrange pages into a new order by specifying page indices.

ActionInstant

Connect any two apps with Notis in the middle.

Google Docs and Api2pdf, or any other combination from 1,000+ integrations.

When this happens · Trigger

Do this · Action

Save your first hour today.

7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Api2pdf.