I want to write a program, that creates a pdf-file. It works. But I need to define not only the
foreground-color of characters but also the background color.
I can change the foreground-color by using the command "rg". Is there a similar command for the background color ?
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
endobj
startxref
On 18.02.2025 18:54, wolfgang bauer (D) wrote:
I want to write a program, that creates a pdf-file. It works. But I need to define not only the
foreground-color of characters but also the background color.
I can change the foreground-color by using the command "rg". Is there a similar command for the background color ?
Draw a box in the background color an then write the text.
Don't know if the appended pdf file works if you just
write then the character over it. But I would prefer a simpler solution. And my problem is: How
can I calculate in realtime the dimensions of that rectangle ? I don't want to have to determine the
values by experimenting. I'm currently doing this as an "interim solution".
18.02.25 , 23:43 , Herbert Kleebauer:[...]
On 18.02.2025 18:54, wolfgang bauer (D) wrote:
I want to write a program, that creates a pdf-file. It works. But
I need to define not only the foreground-color of characters but
also the background color.
It works. Thank you for the answer. But it is not exactly, what I
meant. I want to define the background color of every single
character. I can try, what you suggested, to draw an rectangle in
the wanted color and write then the character over it. But I would
prefer a simpler solution. And my problem is: How can I calculate in
realtime the dimensions of that rectangle ? I don't want to have to determine the values by experimenting. I'm currently doing this as an "interim solution".
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 06:47:43 |
Calls: | 10,386 |
Calls today: | 1 |
Files: | 14,058 |
Messages: | 6,416,638 |