ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] [ \copypages ]
@ 2024-01-17 21:20 vm via ntg-context
  2024-01-18  7:16 ` [NTG-context] " Henning Hraban Ramm
  2024-01-18 11:10 ` Hans Hagen via ntg-context
  0 siblings, 2 replies; 4+ messages in thread
From: vm via ntg-context @ 2024-01-17 21:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: vm


Is there a (hidden) option that allows for changing the font color of 
external included pdfs

\copypages[file.pdf][color=blue]

does not work as intended ;-)

.Floris
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: [ \copypages ]
  2024-01-17 21:20 [NTG-context] [ \copypages ] vm via ntg-context
@ 2024-01-18  7:16 ` Henning Hraban Ramm
  2024-01-18 11:10 ` Hans Hagen via ntg-context
  1 sibling, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-01-18  7:16 UTC (permalink / raw)
  To: vm via ntg-context

Am 17.01.24 um 22:20 schrieb vm via ntg-context:
> 
> Is there a (hidden) option that allows for changing the font color of 
> external included pdfs
> 
> \copypages[file.pdf][color=blue]
> 
> does not work as intended ;-)

No, it can’t.

You can try to use transparency: put a colored area on top of the PDF 
and find the right transparency mode (15 or 13, I guess).

https://wiki.contextgarden.net/Transparency

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: [ \copypages ]
  2024-01-17 21:20 [NTG-context] [ \copypages ] vm via ntg-context
  2024-01-18  7:16 ` [NTG-context] " Henning Hraban Ramm
@ 2024-01-18 11:10 ` Hans Hagen via ntg-context
  2024-01-18 12:33   ` Floris van Manen via ntg-context
  1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen via ntg-context @ 2024-01-18 11:10 UTC (permalink / raw)
  To: vm via ntg-context; +Cc: Hans Hagen

On 1/17/2024 10:20 PM, vm via ntg-context wrote:
> 
> Is there a (hidden) option that allows for changing the font color of 
> external included pdfs
yes but experimental and not yet documented

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [NTG-context] Re: [ \copypages ]
  2024-01-18 11:10 ` Hans Hagen via ntg-context
@ 2024-01-18 12:33   ` Floris van Manen via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Floris van Manen via ntg-context @ 2024-01-18 12:33 UTC (permalink / raw)
  To: ntg-context; +Cc: Floris van Manen



On 18/01/2024 12:10, Hans Hagen via ntg-context wrote:
> yes but experimental and not yet documented

I don't mind experimenting with it.
e.g. I try to change the font color in existing pdf documents from black 
to blue.


At the moment my workaround is using mutool to export pages to svg.
mutool convert -o page.svg -F svg input.pdf

then change the font color
sed -i 's/<symbol /<symbol fill="#0000cc" /g' pageX.svg

then put it back together.

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-18 12:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-17 21:20 [NTG-context] [ \copypages ] vm via ntg-context
2024-01-18  7:16 ` [NTG-context] " Henning Hraban Ramm
2024-01-18 11:10 ` Hans Hagen via ntg-context
2024-01-18 12:33   ` Floris van Manen via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).