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: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 05:08:34 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
921 files (14,318M bytes) |
| Messages: | 264,602 |