rustpdf 0.4.8-aarch64-linux → 0.5.0-aarch64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9804a2f52807c3137518b9eee0e3f3890b37ff606807648d193f95636aec9a8
4
- data.tar.gz: 0613e96f24bbead6784bc57a45562b2102ee47098b2ab9beadc52266bee086f2
3
+ metadata.gz: f5d19847ffbc143d7f9039c294011b1881dde7cee2b14c1845001c96bfce5cf8
4
+ data.tar.gz: c91b0929566248bce27250fc0e43075f42c7c5e66ff4576579405fdbc1edcd22
5
5
  SHA512:
6
- metadata.gz: 2f09dc155f2ae29c28fac72dde744d502d404a66b0e9ab5e93279dc6f2343d16c8ea2b0306e6546d44186862c11a64187853070443348f4d9884e600919b821a
7
- data.tar.gz: 7ecabd1425c565f0a7ac8a43925864afb8a28d556e9fbef1520fa4ff64cc66df8d91c12816101a08064fa1f6891246608210d148f97dc4b7762b55a9aeda82a8
6
+ metadata.gz: 657c575515005ca3b9aba28389c77ef777bc58805550f64ced86e1d244c4c116315433476bf0c80649d6231e6abcc28ed63129034c648063f3c7d2e7b4026079
7
+ data.tar.gz: b4230f5b17c16cd86bd57b90bf665498c601f6586393fa0b36a8526f41321b6917a518d4da410623dc5e899c3fd23f9fabddb194ca18195c5801d5f7b4124060
data/README.md CHANGED
@@ -10,7 +10,7 @@ Generate, edit, sign and process PDFs from Ruby: vector graphics, embedded fonts
10
10
 
11
11
  The public API is `RustPdf::Document` (create PDFs), `RustPdf::EditableDoc`
12
12
  (load and edit existing PDFs) and module functions (`version`,
13
- `activate_license`, `extract_text`, `sign`, `timestamp`, `add_dss`).
13
+ `extract_text`, `sign`, `timestamp`, `add_dss`).
14
14
 
15
15
  ## Loading the native library
16
16
 
@@ -23,8 +23,6 @@ The public API is `RustPdf::Document` (create PDFs), `RustPdf::EditableDoc`
23
23
  ```ruby
24
24
  require "rustpdf"
25
25
 
26
- RustPdf.activate_license(token) # or set RUSTPDF_LICENSE (auto-activated)
27
-
28
26
  doc = RustPdf::Document.new
29
27
  doc.pdfa(RustPdf::Pdfa::A2A).info(title: "Report")
30
28
  f = doc.add_font_file("assets/fonts/Roboto-Regular.ttf")
@@ -41,8 +39,8 @@ ed.encrypt(method: RustPdf::Cipher::AES256, owner: "owner").save("secured.pdf")
41
39
  signed = RustPdf.sign(data, key_der, cert_der, pades: true)
42
40
  ```
43
41
 
44
- Corporate features (PDF/A, signing, encryption, accessibility, page rendering — a **Pro** feature) require a license;
45
- without one they raise `RustPdf::Error`. See [`docs/LICENSING.md`](../../docs/LICENSING.md).
42
+ Every feature is free — PDF/A, digital signatures/PAdES, encryption,
43
+ accessibility/tagging, redaction and page rendering are all included.
46
44
 
47
45
  ## Deferred / HSM signing
48
46
 
@@ -359,7 +359,7 @@ module RustPdf
359
359
  self
360
360
  end
361
361
 
362
- # Encrypt on save (requires a license).
362
+ # Encrypt on save.
363
363
  def encrypt(method: Cipher::AES256, user: "", owner: "", read_only: false)
364
364
  RustPdf.check(Native.call("pdf_editable_encrypt", ptr, method, user, owner, read_only ? 1 : 0))
365
365
  self
@@ -19,7 +19,6 @@ module RustPdf
19
19
  SIGS = {
20
20
  "pdf_version" => [[], VP],
21
21
  "pdf_last_error_message" => [[], VP],
22
- "pdf_activate_license" => [[VP], I],
23
22
  "pdf_buffer_free" => [[VP, SZ], VOID],
24
23
 
25
24
  "pdf_document_new" => [[], VP],
data/lib/rustpdf.rb CHANGED
@@ -7,7 +7,7 @@ require_relative "rustpdf/native"
7
7
  # using the built-in Fiddle stdlib. Covers the whole product surface: vector
8
8
  # graphics, fonts/text, paragraphs, images, PDF/A (1b-3a), tagged/accessible
9
9
  # output, attachments, AcroForm fields, manipulation, text extraction,
10
- # encryption and digital signatures, plus feature licensing.
10
+ # encryption and digital signatures. Free and open source (MIT).
11
11
  module RustPdf
12
12
  # Raised when a native call returns a non-zero PdfStatus.
13
13
  class Error < StandardError
@@ -257,13 +257,6 @@ module RustPdf
257
257
  Native.call("pdf_version").to_s
258
258
  end
259
259
 
260
- # Activate a license token (unlocks PDF/A, signing, encryption,
261
- # accessibility). Tokens may also be supplied via the RUSTPDF_LICENSE /
262
- # RUSTPDF_LICENSE_FILE environment variables (auto-activated).
263
- def activate_license(token)
264
- check(Native.call("pdf_activate_license", token))
265
- end
266
-
267
260
  # Extract a document's text (Unicode via ToUnicode).
268
261
  def extract_text(pdf)
269
262
  take_bytes { |pp, pn| Native.call("pdf_extract_text", pdf, pdf.bytesize, pp, pn) }
@@ -286,13 +279,12 @@ module RustPdf
286
279
  end
287
280
 
288
281
  # Render page +page+ (0-based) of +pdf+ to a PNG image at +dpi+
289
- # dots-per-inch. Page rendering is a licensed Pro feature: raises unless a
290
- # license granting it is active.
282
+ # dots-per-inch.
291
283
  def render_page_to_png(pdf, page = 0, dpi = 150.0)
292
284
  take_bytes { |pp, pn| Native.call("pdf_render_page_to_png", pdf, pdf.bytesize, page, dpi.to_f, pp, pn) }
293
285
  end
294
286
 
295
- # Number of pages in +pdf+ (free — no license required).
287
+ # Number of pages in +pdf+ (free).
296
288
  def page_count(pdf)
297
289
  count = Fiddle::Pointer.malloc(Native::SIZEOF_SZ, Fiddle::RUBY_FREE)
298
290
  check(Native.call("pdf_page_count", pdf, pdf.bytesize, count))
@@ -366,7 +358,7 @@ module RustPdf
366
358
  js.empty? ? [] : JSON.parse(js)
367
359
  end
368
360
 
369
- # Sign a PDF (PKCS#7 detached, incremental update). Requires a license.
361
+ # Sign a PDF (PKCS#7 detached, incremental update).
370
362
  def sign(pdf, key_der, cert_der, reason: nil, location: nil, name: nil, pades: false)
371
363
  take_bytes do |pp, pn|
372
364
  Native.call("pdf_sign", pdf, pdf.bytesize, key_der, key_der.bytesize,
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rustpdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.5.0
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - rust-pdf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-02 00:00:00.000000000 Z
11
+ date: 2026-09-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Generate, edit, sign and process PDFs in Ruby: PDF/A, AES-256 encryption,
14
14
  digital signatures (PAdES), forms, stamping, redaction, text extraction and page
@@ -26,7 +26,7 @@ files:
26
26
  - vendor/aarch64-linux/libpdf_ffi.so
27
27
  homepage:
28
28
  licenses:
29
- - Nonstandard
29
+ - MIT
30
30
  metadata: {}
31
31
  post_install_message:
32
32
  rdoc_options: []