PDF Output Schema (lib/output-schemas.ts)

activepieces · packages/pieces/core/pdf/src/lib/output-schemas.ts · typescript · MIT
files, database, tag:output

Defines output schemas for PDF-related actions, including URLs for generated or modified PDFs.

// Source: https://github.com/activepieces/activepieces | License: MIT | Copyright 2020-2024 Activepieces Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { OutputSchema } from '@activepieces/pieces-framework';

// files.write() resolves to the new file's URL string, not an object -- value:
// '' labels the whole string so it isn't rendered as an unlabeled blob.
const pdfUrlOutput = (description: string): OutputSchema => ({
  fields: [{ key: 'fileUrl', label: 'PDF File URL', value: '', format: 'url', description }],
});

export const addImageToPdfActionOutputSchema = pdfUrlOutput(
  'Link to the PDF with the stamped image(s).',
);

export const addTextToPdfActionOutputSchema = pdfUrlOutput(
  'Link to the PDF with the stamped text.',
);

export const extractPdfPa

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key