asciidoctor-pdf 2.3.16 → 2.3.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +26 -0
- data/README.adoc +1 -1
- data/asciidoctor-pdf.gemspec +0 -1
- data/lib/asciidoctor/pdf/converter.rb +14 -12
- data/lib/asciidoctor/pdf/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e6612af4d8eeff07ca0444050488e1aef241133e695c9bd817be2aa6d59352
|
4
|
+
data.tar.gz: 988bcc07fd515953fb2a8370288ed51224ed3e69f3220c5c7683d87e30d9f436
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa91581c98fd7d96dcfe91c18b16811bee9443640d94e645ce3c6a02be5b3ac5860d3510f5709eb0d8a86a16eea255c06355f3a54258ee20a8d3020741b579e4
|
7
|
+
data.tar.gz: fd46bb12d35dd00126955c3654e10471a3063bba3b9ab9ccec31e90e8d6310e62c36709d90ba627b1b7e55b875bafb4917060300cae29a0fdc2c7f410a89074f
|
data/CHANGELOG.adoc
CHANGED
@@ -5,6 +5,32 @@
|
|
5
5
|
This document provides a high-level view of the changes to the {project-name} by release.
|
6
6
|
For a detailed view of what has changed, refer to the {url-repo}/commits/main[commit history] on GitHub.
|
7
7
|
|
8
|
+
== 2.3.18 (2024-07-27) - @mojavelinux
|
9
|
+
|
10
|
+
Bug Fixes::
|
11
|
+
|
12
|
+
* position foreground image correctly when page layout changes (#2528)
|
13
|
+
|
14
|
+
Compliance::
|
15
|
+
|
16
|
+
* release lock on version of rexml (pulled in by asciidoctor-diagram and prawn-svg) now that incompatibility is resolved
|
17
|
+
|
18
|
+
=== Details
|
19
|
+
|
20
|
+
{url-repo}/releases/tag/v2.3.18[git tag] | {url-repo}/compare/v2.3.17\...v2.3.18[full diff]
|
21
|
+
|
22
|
+
== 2.3.17 (2024-06-01) - @mojavelinux
|
23
|
+
|
24
|
+
Improvements::
|
25
|
+
|
26
|
+
* always use /Producer field in document info to credit Asciidoctor PDF and Prawn, even when author is set (#2510)
|
27
|
+
* map `producer` attribute to /Producer field in document info to override or default value (#2510)
|
28
|
+
* map `publisher` attribute to /Creator field instead of /Producer field in document info; use author as fallback (#2510)
|
29
|
+
|
30
|
+
=== Details
|
31
|
+
|
32
|
+
{url-repo}/releases/tag/v2.3.17[git tag] | {url-repo}/compare/v2.3.16\...v2.3.17[full diff]
|
33
|
+
|
8
34
|
== 2.3.16 (2024-05-31) - @mojavelinux
|
9
35
|
|
10
36
|
Improvements::
|
data/README.adoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= Asciidoctor PDF: A native PDF converter for AsciiDoc
|
2
2
|
Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>
|
3
|
-
v2.3.
|
3
|
+
v2.3.18, 2024-07-27
|
4
4
|
// Settings:
|
5
5
|
:experimental:
|
6
6
|
:idprefix:
|
data/asciidoctor-pdf.gemspec
CHANGED
@@ -42,7 +42,6 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.add_runtime_dependency 'prawn-svg', '~> 0.34.0'
|
43
43
|
s.add_runtime_dependency 'prawn-icon', '~> 3.0.0'
|
44
44
|
s.add_runtime_dependency 'concurrent-ruby', '~> 1.1'
|
45
|
-
s.add_runtime_dependency 'rexml', '3.2.6' # lock rexml to 3.2.6 since 3.2.7 and up breaks Ruby
|
46
45
|
s.add_runtime_dependency 'treetop', '~> 1.6.0'
|
47
46
|
|
48
47
|
s.add_development_dependency 'rake', '~> 13.0.0'
|
@@ -525,13 +525,12 @@ module Asciidoctor
|
|
525
525
|
end
|
526
526
|
info[:Subject] = (sanitize doc.attr 'subject').as_pdf if doc.attr? 'subject'
|
527
527
|
info[:Keywords] = (sanitize doc.attr 'keywords').as_pdf if doc.attr? 'keywords'
|
528
|
-
info[:
|
528
|
+
info[:Creator] = (doc.attr? 'publisher') ? (sanitize doc.attr 'publisher').as_pdf : (info[:Author] || '')
|
529
|
+
info[:Producer] = (sanitize doc.attr 'producer').as_pdf if doc.attr? 'producer'
|
529
530
|
if doc.attr? 'reproducible'
|
530
|
-
info[:
|
531
|
-
info[:Producer] ||= (info[:Author] || info[:Creator])
|
531
|
+
info[:Producer] ||= 'Asciidoctor PDF, based on Prawn'.as_pdf
|
532
532
|
else
|
533
|
-
info[:
|
534
|
-
info[:Producer] ||= (info[:Author] || info[:Creator])
|
533
|
+
info[:Producer] ||= %(Asciidoctor PDF #{::Asciidoctor::PDF::VERSION}, based on Prawn #{::Prawn::VERSION}).as_pdf
|
535
534
|
# NOTE: since we don't track the creation date of the input file, we map the ModDate header to the last modified
|
536
535
|
# date of the input document and the CreationDate header to the date the PDF was produced by the converter.
|
537
536
|
info[:ModDate] = (::Time.parse doc.attr 'docdatetime') rescue (now ||= ::Time.now)
|
@@ -4398,14 +4397,17 @@ module Asciidoctor
|
|
4398
4397
|
if (first_page = (has_front_cover ? (pages.slice 1, pages.size) : pages).find {|it| !it.imported_page? }) &&
|
4399
4398
|
(first_page_num = (pages.index first_page) + 1) &&
|
4400
4399
|
(fg_image = resolve_background_image doc, @theme, 'page-foreground-image') && fg_image[0]
|
4401
|
-
|
4402
|
-
|
4403
|
-
canvas { image fg_image[0], ({ position: :center, vposition: :center }.merge fg_image[1]) }
|
4404
|
-
end
|
4405
|
-
stamp 'foreground-image'
|
4406
|
-
(first_page_num.next..page_count).each do |num|
|
4400
|
+
stamps = ::Set.new
|
4401
|
+
(first_page_num..page_count).each do |num|
|
4407
4402
|
go_to_page num
|
4408
|
-
|
4403
|
+
next if page.imported_page?
|
4404
|
+
unless stamps.include? (stamp_name = %(foreground-image-#{page.layout}))
|
4405
|
+
create_stamp stamp_name do
|
4406
|
+
canvas { image fg_image[0], ({ position: :center, vposition: :center }.merge fg_image[1]) }
|
4407
|
+
end
|
4408
|
+
stamps << stamp_name
|
4409
|
+
end
|
4410
|
+
stamp stamp_name
|
4409
4411
|
end
|
4410
4412
|
end
|
4411
4413
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Allen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-07-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: asciidoctor
|
@@ -137,20 +137,6 @@ dependencies:
|
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '1.1'
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: rexml
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - '='
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: 3.2.6
|
147
|
-
type: :runtime
|
148
|
-
prerelease: false
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - '='
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: 3.2.6
|
154
140
|
- !ruby/object:Gem::Dependency
|
155
141
|
name: treetop
|
156
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -364,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
364
350
|
- !ruby/object:Gem::Version
|
365
351
|
version: '0'
|
366
352
|
requirements: []
|
367
|
-
rubygems_version: 3.5.
|
353
|
+
rubygems_version: 3.5.11
|
368
354
|
signing_key:
|
369
355
|
specification_version: 4
|
370
356
|
summary: Converts AsciiDoc documents to PDF using Asciidoctor and Prawn
|