Open cfr42 opened 4 months ago
Sorry, I'm a bit swamped here, but I'll try to look into it asap.
This surprised me because I thought pdflscape was primarily concerned with instructing the PDF viewer rather than changing the PDF.
If this is the case, I'm not surprised: Memoize stores the PDF page size. I had no idea that the PDF viewer can be instructed otherwise.
Sorry, I'm a bit swamped here, but I'll try to look into it asap.
Sure. Take your time.
This surprised me because I thought pdflscape was primarily concerned with instructing the PDF viewer rather than changing the PDF.
If this is the case, I'm not surprised: Memoize stores the PDF page size. I had no idea that the PDF viewer can be instructed otherwise.
Sorry. I'm trying to reconstruct what surprised me about the difference between the result of using lscape
versus pdflscape
....
pdflscape
/lscape
Semi-random selection:
external
]lscape
vs. pdflscape
]
Compiled with pdfTeX, the following code reports
on every compilation and, indeed, an additional page with the memoized picture is perpetually present in the PDF regardless of how many times the source is compiled.
.mmz:
memos/
.mmz.log:
Note that there is no problem if
lscape
is used rather thanpdflscape
. This surprised me because I thoughtpdflscape
was primarily concerned with instructing the PDF viewer rather than changing the PDF.I don't know whether this is evidence of memoize's security features or a bug, but I'm also not sure what the solution would be. I didn't try this, but my first thought was to capture the
landscape
environment, but that won't work in the original case which arose from a question in which the picture was stamped as a watermark over the regular page content by inclusion in the shipout box. In that case,landscape
might cover several pages, so it wouldn't work to capture everything as an image and I imagine that would not cooperate well with the shipout hooks either.For example,
Code arises from https://tex.stackexchange.com/a/719506/. (I would link the question but it has a rather problematic preamble.)