ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Gradient fill in embedded pdf disappear in externalfigure (on regular pages)
@ 2021-08-30  5:03 Benjamin Buchmuller via ntg-context
  2021-08-30  6:54 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Buchmuller via ntg-context @ 2021-08-30  5:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Benjamin Buchmuller

[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]

Hello list,

I have noticed that some gradients get lost when embedding an external figure from a pdf (Preview and Acrobat DC and in printer), although the original pdf works fine for me.

It seems to occur with color-to-color gradients (but not all), but not with color-to-alpha ones.

While preparing a MWE, I further realized that I get the correct output when between \startTEXpage ... \stopTEXpage

\starttext

Embedded via \type{\externalfigure}

PNG

\externalfigure[drawing.png][width=72.631mm,height=21.702mm]

\blank[big]

PDF

\externalfigure[drawing.pdf]

\startTEXpage  % this "works"
Embedded via \type{\externalfigure} in \type{\startTEXpage ... \stopTEXpage}

PNG

\externalfigure[drawing.png][width=72.631mm,height=21.702mm]

\blank[big]

PDF

\externalfigure[drawing.pdf]
\stopTEXpage

\stoptext

Any hints what I would need to change in order to get the gradients also in non-TEX-page mode?

I attach the two original files and the output produced with this MWE.

Thanks!


Benjamin


[-- Attachment #2: drawing.pdf --]
[-- Type: application/pdf, Size: 15556 bytes --]

[-- Attachment #3: drawing.png --]
[-- Type: image/png, Size: 5231 bytes --]

[-- Attachment #4: test.pdf --]
[-- Type: application/pdf, Size: 27965 bytes --]

[-- Attachment #5: Type: text/plain, Size: 493 bytes --]

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Gradient fill in embedded pdf disappear in externalfigure (on regular pages)
  2021-08-30  5:03 Gradient fill in embedded pdf disappear in externalfigure (on regular pages) Benjamin Buchmuller via ntg-context
@ 2021-08-30  6:54 ` Hans Hagen via ntg-context
       [not found]   ` <3B748712-9194-454E-97E4-BD7BB8F2C60F@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen via ntg-context @ 2021-08-30  6:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen, Benjamin Buchmuller

On 8/30/2021 7:03 AM, Benjamin Buchmuller via ntg-context wrote:
> Hello list,
> 
> I have noticed that some gradients get lost when embedding an external figure from a pdf (Preview and Acrobat DC and in printer), although the original pdf works fine for me.

you have to be a bit more precise in desribing what you expect because i 
don't see it ... there's a pdf and lowres png .. these are different 
anyway, the low res png has some anti aliasing

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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Gradient fill in embedded pdf disappear in externalfigure (on regular pages)
       [not found]   ` <3B748712-9194-454E-97E4-BD7BB8F2C60F@gmail.com>
@ 2021-08-30  7:58     ` Benjamin Buchmuller via ntg-context
  2021-08-30  9:01       ` Jan U. Hasecke via ntg-context
       [not found]     ` <e8d44881-17c3-aa48-98b6-e0d5a943e955@xs4all.nl>
  1 sibling, 1 reply; 5+ messages in thread
From: Benjamin Buchmuller via ntg-context @ 2021-08-30  7:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Benjamin Buchmuller


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

(For the record on the list, I attach a small res screenshot to illustrate the matter, description below; My apologies for any inconvenience.)

On Aug 30, 2021, at 09:36, Benjamin Buchmuller <benjamin.buchmuller@gmail.com> wrote:

Sorry, I've been probably a bit unclear. The file to look at is "test.pdf" (first and second page).

This is a screenshot of what I see (attached):

* in the embedded png (as reference for how the original pdf looks like) the gradients are (no surprise) visible. Green to read for the ellipse and in the rod using a white-to-gray gradient.

* in the embedded pdf (what I would like to do eventually) both gradients disappear.

However, when I use \startTEXpage ... \stopTEXpage around the \externalfigure, everything looks and prints fine.

<Screen Shot 2021-08-30 at 09.32.14.png>

> On Aug 30, 2021, at 08:54, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> On 8/30/2021 7:03 AM, Benjamin Buchmuller via ntg-context wrote:
>> Hello list,
>> I have noticed that some gradients get lost when embedding an external figure from a pdf (Preview and Acrobat DC and in printer), although the original pdf works fine for me.
> 
> you have to be a bit more precise in desribing what you expect because i don't see it ... there's a pdf and lowres png .. these are different anyway, the low res png has some anti aliasing
> 
> 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
> -----------------------------------------------------------------



[-- Attachment #1.2.1: Type: text/html, Size: 2843 bytes --]

[-- Attachment #1.2.2: Screen Shot 2021-08-30 at 09.32.14 copy.jpeg --]
[-- Type: image/jpeg, Size: 27102 bytes --]

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

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Gradient fill in embedded pdf disappear in externalfigure (on regular pages)
       [not found]     ` <e8d44881-17c3-aa48-98b6-e0d5a943e955@xs4all.nl>
@ 2021-08-30  9:01       ` Benjamin Buchmuller via ntg-context
  0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Buchmuller via ntg-context @ 2021-08-30  9:01 UTC (permalink / raw)
  To: Hans Hagen; +Cc: Benjamin Buchmuller, mailing list for ConTeXt users

How odd; Then it must be related to my viewer here ...

I was just surprised to literally see two different outcomes with the \startTEXpage and without. Maybe it has to do with some sort of "nesting" in the PDF that is not handled correctly at the PDF viewer's end. I'll test again on a different machine (and with the printing company) when I'm back to work.

Thanks for having looked into it!

> On Aug 30, 2021, at 10:50, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> attached is what i get and i see the green shading here
> 
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> <x.pdf><x.tex>

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Gradient fill in embedded pdf disappear in externalfigure (on regular pages)
  2021-08-30  7:58     ` Benjamin Buchmuller via ntg-context
@ 2021-08-30  9:01       ` Jan U. Hasecke via ntg-context
  0 siblings, 0 replies; 5+ messages in thread
From: Jan U. Hasecke via ntg-context @ 2021-08-30  9:01 UTC (permalink / raw)
  To: ntg-context; +Cc: Jan U. Hasecke

Am 30.08.21 um 09:58 schrieb Benjamin Buchmuller via ntg-context:
> (For the record on the list, I attach a small res screenshot to 
> illustrate the matter, description below; My apologies for any 
> inconvenience.)

When I open the pdf in evince I see no difference. Maybe also a reader 
problem?

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2021-08-30  9:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30  5:03 Gradient fill in embedded pdf disappear in externalfigure (on regular pages) Benjamin Buchmuller via ntg-context
2021-08-30  6:54 ` Hans Hagen via ntg-context
     [not found]   ` <3B748712-9194-454E-97E4-BD7BB8F2C60F@gmail.com>
2021-08-30  7:58     ` Benjamin Buchmuller via ntg-context
2021-08-30  9:01       ` Jan U. Hasecke via ntg-context
     [not found]     ` <e8d44881-17c3-aa48-98b6-e0d5a943e955@xs4all.nl>
2021-08-30  9:01       ` Benjamin Buchmuller 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).