[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [groff] Fonts, PDF images, groff vs. heirloom troff
From: |
Robert Thorsby |
Subject: |
Re: [groff] Fonts, PDF images, groff vs. heirloom troff |
Date: |
Sun, 27 Jan 2019 09:11:05 +1100 |
On 27/01/19 02:02:52, Mircea Hossu wrote:
If the text "GROFF and Friends" was initially a standalone image
which was stacked on top of another image, it seems like it's exactly
the goal. Would it be possible to share how you achieved this, i.e.
how to "wrap a bitmap in custom Postscript code"? Even if it's
manually tedious, it would be ok. Also, if it uses any kind of
non-standard operators, it would be useful to know what the
limitations are, for example, if you have to use specifically the
GhostScript program to convert PS->PDF, etc.
[Sorry for including such a large attachment -- it is an actual invoice
with the address details substituted].
Is the attached something like what you are trying to achieve.
The letterhead is boilerplate text. The invoice details are
automatically inserted from a database using a bash script. The
watermark image is an EPS file inserted via the .PSPIC request (hence
the size of the attached file).
The "PAID" stamp is pure postscript (and *very* kludgy). The defined
string "I*N*V*P*D" triggers it's insertion. If the .ds is null then the
stamp is not inserted and the text "This invoice has been paid in full"
is replaced with instructions on how to make payment.
The only problem I had when creating the template was that the
automatic placement of the "PAID" stamp is into a static location. Of
course, it's location may be altered manually but I have no need to do
so because that section of the invoice contains no substantive detail.
I found that inserting text is much better done with postscript code
than creating an image.
Once again, sorry for the large file.
Robert
dummy_invoice.pdf
Description: Adobe PDF document
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, (continued)
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, Pierre-Jean Fichet, 2019/01/28
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, Roy Fisher, 2019/01/28
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, Pierre-Jean Fichet, 2019/01/29
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, Roy Fisher, 2019/01/30
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, aksr, 2019/01/30
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, Roy Fisher, 2019/01/31
Re: [groff] Fonts, PDF images, groff vs. heirloom troff, Ruben Schuller, 2019/01/22
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, Mircea Hossu, 2019/01/22
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, Boss Hog, 2019/01/25
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, Mircea Hossu, 2019/01/26
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff,
Robert Thorsby <=
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, John Gardner, 2019/01/26
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, Boss Hog, 2019/01/27
- Re: [groff] Fonts, PDF images, groff vs. heirloom troff, Mircea Hossu, 2019/01/28