ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Can LMTX help me with this PDF manipulation?
@ 2024-07-29 20:59 Gerben Wierda
  2024-07-29 23:03 ` [NTG-context] " Bruce Horrocks
  0 siblings, 1 reply; 3+ messages in thread
From: Gerben Wierda @ 2024-07-29 20:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 810 bytes --]

I have a large PDF with mostly vector and a bit of pixel graphics. It is in two colours only (the pixels are either one colour or the other, no dithering). I want to create a new PDF of a segment of the larger PDF (bottom left corner), where vector is maximally preserved, and where one colour is replaced by 100% transparency.

I was wondering if that is doable by using LMTX instead of trying to do this with some GUI app.

Thanks,

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon <https://newsie.social/@gctwnl>)
R&A IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
YouTube Channel <http://www.youtube.com/@GerbenWierda>

[-- Attachment #1.2: Type: text/html, Size: 1231 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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] 3+ messages in thread

* [NTG-context] Re: Can LMTX help me with this PDF manipulation?
  2024-07-29 20:59 [NTG-context] Can LMTX help me with this PDF manipulation? Gerben Wierda
@ 2024-07-29 23:03 ` Bruce Horrocks
  2024-07-30  9:27   ` Gerben Wierda
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Horrocks @ 2024-07-29 23:03 UTC (permalink / raw)
  To: ntg-context mailing list



> On 29 Jul 2024, at 21:59, Gerben Wierda <gerben.wierda@rna.nl> wrote:
> 
> I have a large PDF with mostly vector and a bit of pixel graphics. It is in two colours only (the pixels are either one colour or the other, no dithering). I want to create a new PDF of a segment of the larger PDF (bottom left corner), where vector is maximally preserved, and where one colour is replaced by 100% transparency.
> 
> I was wondering if that is doable by using LMTX instead of trying to do this with some GUI app.

I would start with \clip & \setupclipping to obtain the segment, and \definetransparency to set one of the colours to be transparent.
<https://wiki.contextgarden.net/Transparency>

—
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
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] 3+ messages in thread

* [NTG-context] Re: Can LMTX help me with this PDF manipulation?
  2024-07-29 23:03 ` [NTG-context] " Bruce Horrocks
@ 2024-07-30  9:27   ` Gerben Wierda
  0 siblings, 0 replies; 3+ messages in thread
From: Gerben Wierda @ 2024-07-30  9:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2037 bytes --]

Thank you.

Regarding transparency (clipping I fully am convinced that is doable, just wondering how), I looked at that but

    {\starttransparent[tnormal]\externalfigure[cow.pdf][width=9cm]\stoptransparent}

makes the entire PDF transparent, not just one colour inside that PDF.

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>, Mastodon <https://newsie.social/@gctwnl>)
R&A IT Strategy <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
YouTube Channel <http://www.youtube.com/@GerbenWierda>

> On 30 Jul 2024, at 01:03, Bruce Horrocks <ntg@scorecrow.com> wrote:
> 
> 
> 
>> On 29 Jul 2024, at 21:59, Gerben Wierda <gerben.wierda@rna.nl> wrote:
>> 
>> I have a large PDF with mostly vector and a bit of pixel graphics. It is in two colours only (the pixels are either one colour or the other, no dithering). I want to create a new PDF of a segment of the larger PDF (bottom left corner), where vector is maximally preserved, and where one colour is replaced by 100% transparency.
>> 
>> I was wondering if that is doable by using LMTX instead of trying to do this with some GUI app.
> 
> I would start with \clip & \setupclipping to obtain the segment, and \definetransparency to set one of the colours to be transparent.
> <https://wiki.contextgarden.net/Transparency>
> 
> —
> Bruce Horrocks
> Hampshire, UK
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 2678 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2024-07-30  9:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-29 20:59 [NTG-context] Can LMTX help me with this PDF manipulation? Gerben Wierda
2024-07-29 23:03 ` [NTG-context] " Bruce Horrocks
2024-07-30  9:27   ` Gerben Wierda

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).