[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fullpage Image Using PDFPIC/PSPIC
From: |
Deri |
Subject: |
Re: Fullpage Image Using PDFPIC/PSPIC |
Date: |
Tue, 10 Jan 2023 23:52:28 +0000 |
On Tuesday, 10 January 2023 22:46:00 GMT Alexis wrote:
> Hello everyone,
>
> I'd like to place an image as a fullpage image, i.e. no border
> whatsoever, using `.PDFPIC` or `.PSPIC`
> (see attached full-page-pdfpic-desired.pdf).
> Yet I notice that the image is always placed `1v` below the top of the
> page (see attached full-page-pdfpic-actual.pdf).
>
> Using `.sp |0`, `.sp -1`, or `\v'-1v' before the calls to the
> `.PDFPIC` or `.PSPIC` macro did seem to have any effect.
> The only way that I could get it to work was by adding `\v'-1'
> before the `\X'pdf: pdfpic` and `\X'psfile=` escapes in `pdfpic.tmac`
> and `pspic.tmac`, e.g. here:
> https://git.savannah.gnu.org/cgit/groff.git/tree/tmac/pspic.tmac#n146
>
> Can someone think of a way to place an image as fullpage image
> using groff with the current state of the master branch?
If you do:-
.vs 0
.PDFPIC ...
.vs
it should work.
Also
groff -Tpdf -U -P-p465p,465p full-page-pdfpic.roff > full-page-pdfpic.pdf
is a bit faster in this case.
Cheers
Deri
> If not, would people be open to possibly add another argument
> to the `.PDFPIC` and `.PSPIC` macros, e.g. `-v <v-offset>`, that would
> allow an image to be shifted vertically?
>
>
> Best
> Alexis
>
> P.S.: Please find attached the sources and files that were used during
> the tests and experiments; map.pdf attachment exported from
> https://osm.org/go/b7I4q7dE