github.com/aloli-crystal/combine-pdf

ISO-compatible Crystal port of the Ruby gem `combine_pdf` v1.0.31 (April 2025). Provides the canonical `CombinePDF.new` / `CombinePDF.load` / `CombinePDF.parse` entry points plus the `CombinePDF::PDF` instance API (`<<`, `>>`, `insert`, `remove`, `pages`, `page_count`, `new_page`, `title=`, `author=`, `number_pages`, `save`, `to_pdf`). Crystal-specific bonuses, kept from v0.2 : * `CombinePDF.merge` — one-shot multi-PDF concatenation * `CombinePDF.number` — page numbering with A4/Letter awareness and partition-aware intra-numbering (fixes the US Letter hardcoding bug of the Ruby gem's `number_pages`) * `CombinePDF.assemble` — merge + number in a single call (booklet of partitions use case) Versioning: 4th digit increments per additive iteration on top of the synchronised Ruby gem version.

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  combine-pdf:
    github: aloli-crystal/combine-pdf
    version: ~> 0.2.0

Then run:

shards install

shard.yml

Crystal
>= 1.19.0
License
MIT
Author
Philippe Nénert
Target
  • crystal-combine-pdf from src/cli.cr

Dependencies

Runtime Dependencies

  • crystal-pdf~> 0.3github: aloli-crystal/crystal-pdf

Development Dependencies

  • ameba~> 1.6github: crystal-ameba/amebadev

README

No README has been indexed for this shard yet. You can read it on the repository.