| name | adobe-core-workflow-b |
| description | Execute Adobe PDF Services workflow: create PDFs from HTML/DOCX, extract text/tables,
document generation from templates, and PDF-to-Markdown conversion.
Use when building document automation, extracting content from PDFs,
or generating dynamic reports.
Trigger with phrases like "adobe pdf", "pdf services", "extract pdf",
"create pdf", "document generation", "pdf to markdown".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Grep |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","design","adobe"] |
| compatibility | Designed for Claude Code |
Adobe Core Workflow B — PDF Services
Overview
Document automation using Adobe PDF Services API: create PDFs from HTML/DOCX, extract structured text and tables with Sensei AI, generate documents from Word templates with JSON data, and convert PDFs to LLM-friendly Markdown.
Prerequisites
- Completed
adobe-install-auth with PDF Services credentials
npm install @adobe/pdfservices-node-sdk (v4.x+)
- 500 free document transactions/month on the free tier
Instructions
Step 1: Create PDF from HTML
import {
ServicePrincipalCredentials,
PDFServices,
MimeType,
CreatePDFJob,
CreatePDFResult,
} from '@adobe/pdfservices-node-sdk';
import * as fs from 'fs';
const credentials = new ServicePrincipalCredentials({
clientId: process.env.ADOBE_CLIENT_ID!,
clientSecret: process.env.ADOBE_CLIENT_SECRET!,
});
const pdfServices = new PDFServices({ credentials });
export async function htmlToPdf(htmlPath: string, outputPath: string): Promise<void> {
const inputStream = fs.createReadStream(htmlPath);
inputAsset = pdfServices.({
: inputStream,
: .,
});
job = ({ inputAsset });
pollingURL = pdfServices.({ job });
result = pdfServices.({
pollingURL,
: ,
});
resultAsset = result.!.;
streamAsset = pdfServices.({ : resultAsset });
output = fs.(outputPath);
streamAsset..(output);
( {
output.(, resolve);
output.(, reject);
});
.();
}