page_print 0.1.7 → 0.1.8
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 +4 -4
- data/README.md +3 -4
- data/lib/page_print/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4756973315a1710c09f8fb293da5057e5a16690d128a55e63b1e36dbec037ea6
|
|
4
|
+
data.tar.gz: e267eadccf8a7dcc8efb43f90d968fc016dafb43e9ff2610cbd0258c3340199b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 486e05765bcc2f15584c1c694468c7c1cd4fe000bb5c20e71b1ece8006068f154b287969a8b902232d2e1414b0d0807edaf0ecbb8f143195e220e9a84da770d4
|
|
7
|
+
data.tar.gz: d58d39763a9ba7f6da46e0d0449e4be802de2f067773345a51003960775d2a0f785e98ffe145c8d8df96356421b9ed64707b018ce28ce36f2dc31e8bbf36bd60
|
data/README.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
> [!IMPORTANT]
|
|
4
4
|
> PagePrint is not production-ready yet. The gem is still in active testing, especially around native packaging and platform compatibility.
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
`page_print` renders HTML strings to PDF files from Ruby using the `plutobook` library through a native C extension.
|
|
8
7
|
|
|
9
8
|
It exists as a faster, simpler alternative to PDFKit and other `wkhtmltopdf`-based gems. There is no external renderer process to shell out to, and the public Ruby API is intentionally small.
|
|
@@ -13,7 +12,7 @@ It exists as a faster, simpler alternative to PDFKit and other `wkhtmltopdf`-bas
|
|
|
13
12
|
Add PagePrint to your Gemfile:
|
|
14
13
|
|
|
15
14
|
```ruby
|
|
16
|
-
gem "page_print"
|
|
15
|
+
gem "page_print"
|
|
17
16
|
```
|
|
18
17
|
|
|
19
18
|
Or install from RubyGems directly:
|
|
@@ -145,7 +144,7 @@ RUNS=30 WARMUPS=3 bundle exec ruby benchmark/pdf_renderers.rb
|
|
|
145
144
|
Measured on 2026-05-30 with Ruby 3.4.7 on Apple Silicon:
|
|
146
145
|
|
|
147
146
|
| Renderer | Avg wall | P95 wall | Avg CPU | Avg peak RSS | Avg PDF |
|
|
148
|
-
|
|
147
|
+
| --- | ---: | ---: | ---: | ---: | ---: |
|
|
149
148
|
| `page_print` | 78.2ms | 89.6ms | 93.4ms | 42.1MB | 33.0KB |
|
|
150
149
|
| PDFKit | 782.2ms | 2127.1ms | 824.8ms | 59.4MB | 27.9KB |
|
|
151
150
|
|
|
@@ -161,7 +160,7 @@ For options and CSV output, see `benchmark/README.md`.
|
|
|
161
160
|
Supported platforms:
|
|
162
161
|
|
|
163
162
|
| Platform | Install Type |
|
|
164
|
-
|
|
163
|
+
| --- | --- |
|
|
165
164
|
| `x86_64-linux` | Vendored PlutoBook, local Ruby extension build |
|
|
166
165
|
| `arm64-darwin` | Vendored PlutoBook, local Ruby extension build |
|
|
167
166
|
| Other platforms | Source build |
|
data/lib/page_print/version.rb
CHANGED