Skip to content

Commit

Permalink
Don't embed PDF files immediately to count pages
Browse files Browse the repository at this point in the history
Fixes #1098.
  • Loading branch information
zauguin committed Jun 24, 2022
1 parent af7d4ef commit 036ada6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions l3backend/CHANGELOG.md
Expand Up @@ -6,6 +6,9 @@ this project uses date-based 'snapshot' version identifiers.

## [Unreleased]

#### Fixed
- Do not include PDF file to count pages on pdfTeX

## [2022-04-20]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion l3backend/l3backend-graphics.dtx
Expand Up @@ -352,7 +352,7 @@
% \begin{macrocode}
\cs_new_protected:Npn \@@_backend_get_pagecount:n #1
{
\tex_immediate:D \tex_pdfximage:D {#1}
\tex_pdfximage:D {#1}
\int_const:cn { c_@@_ #1 _pages_int }
{ \int_use:N \tex_pdflastximagepages:D }
}
Expand Down
3 changes: 0 additions & 3 deletions l3experimental/l3graphics/testfiles/m3graphics002.tlg
Expand Up @@ -3,15 +3,12 @@ Don't change this file in any respect.
============================================================
TEST 1: Getting the number of pages
============================================================
<./miau.pdf>
> \l_tmpa_tl=1.
<recently read> }
l. ... }
<./foo.bar.png>
> \l_tmpa_tl=1.
<recently read> }
l. ... }
<./example-image-a4-numbered.pdf>
> \l_tmpa_tl=12.
<recently read> }
l. ... }
Expand Down

0 comments on commit 036ada6

Please sign in to comment.