Skip to content

Commit

Permalink
Adapt markup for CSS functions to reflect our markup in the Ref Guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
csant committed Oct 17, 2023
1 parent 7188a86 commit a9782a1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,9 @@ Image Magic

The [`-prince-image-magic`](css-props.md#prop-prince-image-magic) property performs various image-related, Prince-specific tasks that do not fit into other existing CSS properties. It applies magic to images!

To reduce the PDF file size, JPEG images can be recompressed at a lower quality level by using the function `recompress-jpeg(quality%)` with the required quality percentage as argument.
To reduce the PDF file size, JPEG images can be recompressed at a lower quality level by using the function <code>recompress-jpeg( &lt;<i>quality%</i>&gt; )</code> with the required quality percentage as argument.

PNG images can be converted to JPEG images with the keyword `convert-to-jpeg` (using the default compression rate), or they can also be converted to JPEG with the required compression rate as argument with the function `convert-to-jpeg(quality%)`.
PNG images can be converted to JPEG images with the keyword `convert-to-jpeg` (using the default compression rate), or they can also be converted to JPEG with the required compression rate as argument with the function <code>convert-to-jpeg( &lt;<i>quality%</i>&gt; )</code>.

Prince usually strips unnecessary metadata from JPEG images to help contain size. But it might happen that you need that extra data, possibly for further downstream processing. The keyword `jpeg-verbatim` inhibtis this stripping and includes the images without modification in the PDF file.

Expand Down
4 changes: 2 additions & 2 deletions website/properties/properties.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4943,12 +4943,12 @@ supplier, item { overflow-wrap: normal; }
embedded in the PDF file.
</p>
<p>
When <code>recompress-jpeg(quality%)</code> is specified for this property, Prince
When <code>recompress-jpeg( &lt;<i>quality%</i>&gt; )</code> is specified for this property, Prince
will recompress JPEG images to the specified percentage to save space when
embedding them in the PDF output.
</p>
<p>
The <code>convert-to-jpeg</code> keyword or the <code>convert-to-jpeg(quality%)</code>
The <code>convert-to-jpeg</code> keyword or the <code>convert-to-jpeg( &lt;<i>quality%</i>&gt; )</code>
function convert non-JPEG images to JPEG, so that they take less space (but may look blurry).
</p>
<p class="note">
Expand Down
3 changes: 2 additions & 1 deletion website/properties/schema.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,12 @@ html-list-item =
element li { html-inline* }

html-phrase = element em { html-text } |
element i { html-text } |
element strong { html-text } |
element sup { attribute style { text }, html-text }

html-text =
element code { html-text } |
element code { html-inline* } |
text

reference =
Expand Down

0 comments on commit a9782a1

Please sign in to comment.