Skip to main content
PDF SDK

PDF SDK for Editing Existing PDFs

Target and modify existing PDF content from Python, Node.js/TypeScript, or Java. PDFDancer provides language-specific clients for a hosted editing service, with result diagnostics and explicit layout controls for production workflows.

Use the SDK to edit approved PDFs inside automated PDF workflowsthat already handle approval and release.

Official PDFDancer SDKs

All three clients use the same PDFDancer editing service. Choose the package that matches your application runtime, then continue with its implementation guide.

Java PDF SDK

Java 17+

Use the Java client in JVM applications with Maven or Gradle.

com.pdfdancer.client:pdfdancer-client-java:3.0.1Explore the Java PDF SDK

Open, target, edit, inspect, and save

The released clients follow the same operation lifecycle. This example changes one value on page one, checks operation errors, and saves a new PDF.

What to inspect

TargetSelect text by content and optionally limit the operation to one page.
ResultUse changed counts, warnings, errors, and layout diagnostics to evaluate the edit.
OutputAnonymous evaluation produces a saved PDF with a free-plan watermark.

One editing model across three languages

Use document- or page-scoped interfaces to target content, apply an operation, and validate the result. Operation-specific documentation defines the available requests and diagnostics.

Control layout

Choose source-anchored placement, reflow with fallback, or required reflow that reports unsupported targets.

Text layout documentation

Extract structured text

Analyze a document or page as semantic reading units with roles, reading order, provenance, bounds, and relationships.

Structured text documentation

Match the SDK to the job

PDFDancer is designed for programmatic changes to existing PDF documents. Adjacent document workflows may require a different category of tool.

PDFDancer workflow fit and technical qualifications
WorkflowFitQualification
Update text in an existing PDFStrong fitThe target must be selectable, editable PDF text.
Personalize a finished templateStrong fitValidate replacement length, font coverage, and layout diagnostics.
Modify pages, images, forms, or vector objectsSupportedUse the operation-specific SDK interfaces and inspect the saved result.
Generate primarily from HTML or source templatesDifferent workflowA source-driven document generator may be a more direct fit.
Extract structured text for search or analyticsSupported in all three SDKsAnalyze the complete document or one page as semantic reading units with roles, reading order, source provenance, page-space bounds, and relationships.
Edit image-only scansNot directly editable as textText operations require editable PDF text rather than a page image.
Perform security redactionNot supportedDeleting selected text does not provide a security-redaction guarantee.
Provide an interactive browser editorDifferent product categoryPDFDancer provides programmatic SDK clients rather than an embeddable visual editor.

Test the PDFs your workflow actually receives

What runs where

Your code runs the SDK client. The client creates a session with the hosted PDFDancer service, submits operations, and retrieves the edited output.

Evaluation
Anonymous session with watermarked output
Authenticated use
API token supplied to the client
Output
File on disk or PDF bytes
  1. Run the quick start against a representative production PDF.
  2. Confirm the target is selectable text rather than outlines, paths, or a page image.
  3. Test both longer and shorter replacements.
  4. Choose a layout mode and inspect its diagnostics instead of inferring reflow from a successful change.
  5. Check changed counts, warnings, and errors before accepting the output.
  6. Verify that the selected font contains every character required by the replacement.
  7. Reopen and render the saved PDF in the viewers used by your workflow.
  8. Validate PDF/A requirements and digital signatures separately when they matter.
  9. Exercise authentication, network failures, file handling, and service errors in the intended server environment.

Continue with the operation you need

PDF SDK evaluation questions

Start Using PDFDancer Today

Get started in seconds with our free tier. No credit card required.

Prefer to test the editing workflow first? Run the anonymous quick start. Current plan details are available on the pricing page.