locally hosted web application that allows you to perform various operations on PDF files
Go to file
2023-10-28 19:30:12 +02:00
public Split On QR Code 2023-10-28 19:30:12 +02:00
routes/api implemented new shared-traverser on browser 2023-10-22 01:11:17 +02:00
.gitignore Merge branch 'stirling-pdf-rewrite' of https://github.com/Frooodle/Stirling-PDF into stirling-pdf-rewrite 2023-10-22 16:45:52 +02:00
CONTRIBUTE.md Updated Dependency Docs 2023-10-24 16:18:45 +02:00
functions.js Updated Imports 2023-10-27 03:14:22 +02:00
index.js sync & async api 2023-10-19 19:46:23 +02:00
package-lock.json QRCode Detection working. 2023-10-27 02:56:13 +02:00
package.json QRCode Detection working. 2023-10-27 02:56:13 +02:00
README.md Remove blank pages done, Updated README.md 2023-10-24 19:31:14 +02:00

StirlingPDF rewrite

This is the development repository for the new StirlingPDF backend. With the power of JS, WASM & GO this will provide almost all functionality SPDF can do currently directly on the client. For automation purposes this will still provide an API to automate your workflows.

Try the new API!

Run in Postman

Understanding Workflows

Workflows define how to apply operations to a PDF, including their order and relations with eachother.

Workflows can be created via the web-ui and then exported or, if you want to brag a bit, you can create the JSON object yourself.

Basics

To create your own, you have to understand a few key features first. You can also look at more examples our github repository.

{
  "outputOptions": {
    "zip": false
  },
  "operations": [
    {
      "type": "extract",
      "values": {
        "pagesToExtractArray": [0, 2]
      },
      "operations": []
    }
  ]
}

The workflow above will extract the first (p[0]) and third (p[2]) page of the document.

You can also nest workflows like this:

{
  "outputOptions": {
    "zip": false
  },
  "operations": [
    {
      "type": "extract",
      "values": {
        "pagesToExtractArray": [0, 2]
      },
      "operations": [
        {
          "type": "impose",
          "values": {
            "nup": 2, // 2 pages of the input document will be put on one page of the output document.
            "format": "A4L" // A4L -> The page size of the Ouput will be an A4 in Landscape. You can also use other paper formats and "P" for portrait output. 
          },
          "operations": []
        }
      ]
    }
  ]
}

If you look at it closely, you will see that the extract operation has another nested operation of the type impose. This workflow will produce a PDF with the 1st and 2nd page of the input on one single page.

Advanced

If that is not enought for you usecase, there is also the possibility to connect operations with eachother.

You can also do different operations to produce two different output PDFs from one input.

If you are interested in learning about this, take a look at the Example workflows provided in the repository, ask on the discord, or wait for me to finish this documentation.

Features

Rewrite Roadmap

  • Client side PDF-Manipulation
  • Workflows
  • Feature equivalent with S-PDF v1
  • Stateful UI
  • Node based editing of Workflows
  • Propper auth using passportjs

Functions

Current functions of spdf and their progress in this repo.

Status Feature Description
✔️ Merge
✔️ Split
✔️ Rotate
✔️ Multi-Page-Layout
✔️ Adjust page size/scale
✔️ Organize
✔️ Change Metadata
✔️ Auto Rename
Add Watermark
PDF to Single large Page
Auto Redact
Remove Pages
Status Feature Description
✔️ Remove Blank Pages
🚧 Auto Split Pages
Status Feature Description
Repair
Compress
Flatten
Compare/Diff
Sanitize
Get info
Show JS
Status Feature Description
Sign
Sign with Certificate
Add Password
Remove Password
Change Permissions
Status Feature Description
Image to PDF
Add image
Extract Images
PDF to Image
OCR
Detect/Split Scanned photos
Status Feature Description
Convert file to PDF
PDF to Text/RTF
PDF to HTML
PDF to XML
URL to PDF
HTML to PDF
Markdown to PDF

✔️: Done, 🚧: Started Developement, : Planned Feature

Contribute

For initial instructions look at CONTRIBUTE.md