ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* issue with external image and PDF/A-3a
@ 2017-10-05 18:18 Pablo Rodriguez
  2017-10-05 19:05 ` luigi scarso
  0 siblings, 1 reply; 14+ messages in thread
From: Pablo Rodriguez @ 2017-10-05 18:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have this minimal sample:

    \setupbackend
      [format=PDF/A-3a,
       intent=sRGB IEC61966-2.1,
       profile={sRGB.icc,default_gray.icc},
       level=0]

    \setuptagging[state=start]

    \setupcolors[cmyk=no]

    \startTEXpage[offset=1em]
    \externalfigure[transparent]
    \stopTEXpage
    \stoptext

The external figure is available from
http://pdf.ousia.tk/transparent.pdf (and output file at
http://pdf.ousia.tk/transparent-pdf-a-3a.pdf).

Using veraPDF (http://verapdf.org/), the output document doesn’t comply
with the validation profile requirements.

As Luigi wisely predicted, external images may be problematic.

I get one error, because of the color of the external figure:
https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-6243-2.

The PDF object in question is the following:

    12 0 obj
    <<
      /Type /XObject
      /Subtype /Form
      /FormType 1
      /BBox [ 0 0 316.896 215.5669 ]
      /Group <<
        /Type /Group
        /S /Transparency
        /I true
        /CS /DeviceRGB
      >>
      /Resources 21 0 R
      /Length 71
    >>
    stream
    q
    0.188235 0.392157 0 rg /a0 gs
    28.348 187.219 260.203 -158.871 re f
    Q
    endstream
    endobj

Well, this is a minimal sample, but my real document is much bigger. Is
there any way to convert the stream to something that ConTeXt can handle
directly?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 14+ messages in thread

* Re: issue with external image and PDF/A-3a
  2017-10-05 18:18 issue with external image and PDF/A-3a Pablo Rodriguez
@ 2017-10-05 19:05 ` luigi scarso
  2017-10-05 20:40   ` Pablo Rodriguez
  0 siblings, 1 reply; 14+ messages in thread
From: luigi scarso @ 2017-10-05 19:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Oct 5, 2017 at 8:18 PM, Pablo Rodriguez <oinos@gmx.es> wrote:
> Dear list,
>
> I have this minimal sample:
>
>     \setupbackend
>       [format=PDF/A-3a,
>        intent=sRGB IEC61966-2.1,
>        profile={sRGB.icc,default_gray.icc},
>        level=0]
>
>     \setuptagging[state=start]
>
>     \setupcolors[cmyk=no]
>
>     \startTEXpage[offset=1em]
>     \externalfigure[transparent]
>     \stopTEXpage
>     \stoptext
>
> The external figure is available from
> http://pdf.ousia.tk/transparent.pdf (and output file at
> http://pdf.ousia.tk/transparent-pdf-a-3a.pdf).
>
> Using veraPDF (http://verapdf.org/), the output document doesn’t comply
> with the validation profile requirements.
>
> As Luigi wisely predicted, external images may be problematic.
>
> I get one error, because of the color of the external figure:
> https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-6243-2.
>
> The PDF object in question is the following:
>
>     12 0 obj
>     <<
>       /Type /XObject
>       /Subtype /Form
>       /FormType 1
>       /BBox [ 0 0 316.896 215.5669 ]
>       /Group <<
>         /Type /Group
>         /S /Transparency
>         /I true
>         /CS /DeviceRGB
>       >>
>       /Resources 21 0 R
>       /Length 71
>     >>
>     stream
>     q
>     0.188235 0.392157 0 rg /a0 gs
>     28.348 187.219 260.203 -158.871 re f
>     Q
>     endstream
>     endobj
>
> Well, this is a minimal sample, but my real document is much bigger. Is
> there any way to convert the stream to something that ConTeXt can handle
> directly?


hm, the only reliable way that I know w is to convert it to a flattened png
$> convert transparent.pdf -density 300 -colorspace RGB -flatten transparent.png

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

* Re: issue with external image and PDF/A-3a
  2017-10-05 19:05 ` luigi scarso
@ 2017-10-05 20:40   ` Pablo Rodriguez
  2017-10-05 20:52     ` installing ConTeXt on ARM linux Floris van Manen
  2017-10-10 14:35     ` issue with external image and PDF/A-3a Peter Rolf
  0 siblings, 2 replies; 14+ messages in thread
From: Pablo Rodriguez @ 2017-10-05 20:40 UTC (permalink / raw)
  To: ntg-context

On 10/05/2017 09:05 PM, luigi scarso wrote:
> On Thu, Oct 5, 2017 at 8:18 PM, Pablo Rodriguez wrote:
>> [...]
>> Well, this is a minimal sample, but my real document is much bigger. Is
>> there any way to convert the stream to something that ConTeXt can handle
>> directly?
> 
> hm, the only reliable way that I know w is to convert it to a flattened png

Many thanks for your reply, Luigi.

The real graphic is a vector logo and I need to keep it as a vector
image. I converted it from a SVG source into a PDF document (years ago).

I cannot remember if the vector image contains transparency. If needed,
I would remove it from the image.

The way to convert it may be using Inkscape into a PostScript document
and then to MetaPost using pstoedit (as I have just discovered).

Is that right or could something get lost in the translation?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 14+ messages in thread

* installing ConTeXt on ARM linux
  2017-10-05 20:40   ` Pablo Rodriguez
@ 2017-10-05 20:52     ` Floris van Manen
  2017-10-06  6:31       ` Hans Hagen
  2017-10-06  7:10       ` Mojca Miklavec
  2017-10-10 14:35     ` issue with external image and PDF/A-3a Peter Rolf
  1 sibling, 2 replies; 14+ messages in thread
From: Floris van Manen @ 2017-10-05 20:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1.1: Type: text/plain, Size: 355 bytes --]

trying to install ConTeXt on an ARM (ubuntu) linux hos, then get this message with the request to report is on the mailing list:

$ sh ./first-setup.sh --engine=luatex
Error: your system "Linux aarch64" is not supported yet.
Please report to the ConTeXt mailing-list (ntg-context@ntg.nl)

is there a (beta) working version somewhere?

Thanks
.F

[-- Attachment #1.1.2: Type: text/html, Size: 757 bytes --]

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 874 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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] 14+ messages in thread

* Re: installing ConTeXt on ARM linux
  2017-10-05 20:52     ` installing ConTeXt on ARM linux Floris van Manen
@ 2017-10-06  6:31       ` Hans Hagen
  2017-10-06  7:10       ` Mojca Miklavec
  1 sibling, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2017-10-06  6:31 UTC (permalink / raw)
  To: ntg-context

On 10/5/2017 10:52 PM, Floris van Manen wrote:
> trying to install ConTeXt on an ARM (ubuntu) linux hos, then get this 
> message with the request to report is on the mailing list:
> 
> $ sh ./first-setup.sh --engine=luatex
> Error: your system "Linux aarch64" is not supported yet.
> Please report to the ConTeXt mailing-list (ntg-context@ntg.nl 
> <mailto:ntg-context@ntg.nl>)
> 
> is there a (beta) working version somewhere?
these are some arm bins on the context garden but mojca can tell more 
about that

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

* Re: installing ConTeXt on ARM linux
  2017-10-05 20:52     ` installing ConTeXt on ARM linux Floris van Manen
  2017-10-06  6:31       ` Hans Hagen
@ 2017-10-06  7:10       ` Mojca Miklavec
  2017-10-06  9:46         ` Hans Hagen
  1 sibling, 1 reply; 14+ messages in thread
From: Mojca Miklavec @ 2017-10-06  7:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Johannes Hielscher

On 5 October 2017 at 22:52, Floris van Manen wrote:
> trying to install ConTeXt on an ARM (ubuntu) linux hos, then get this
> message with the request to report is on the mailing list:
>
> $ sh ./first-setup.sh --engine=luatex
> Error: your system "Linux aarch64" is not supported yet.
> Please report to the ConTeXt mailing-list (ntg-context@ntg.nl)
>
> is there a (beta) working version somewhere?

We didn't yet attempt to set up 64-bit binaries, even though I admit a
crime of having Pine64 [1] in a drawer since the end of the
Kickstarted campaign (which was more than a year ago). I even
considered bringing it to the ConTeXt meeting and setting it up there,
but I only set up the Raspberry (there was enough of other things to
do and an unique opportunity to talk to other developers, so too much
hacking would not be desirable).

I can try to set it up (the only problem is that I will be away for
nearly a month and might not manage to set it up before I leave) in
which case you would get all the binaries working automatically. The
other alternative is that someone else builds both TeX Live binaries
and LuaTeX for now and we add a new machine to our buildfarm later. In
any case we need to manually add that architecture to the list to
start syncing the necessary binaries.

Johannes was thinking of adding binaries to TeX Live.

Mojca

[1] https://www.kickstarter.com/projects/pine64/pine-a64-first-15-64-bit-single-board-super-comput
___________________________________________________________________________________
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] 14+ messages in thread

* Re: installing ConTeXt on ARM linux
  2017-10-06  7:10       ` Mojca Miklavec
@ 2017-10-06  9:46         ` Hans Hagen
  2017-10-06 10:37           ` Floris van Manen
  0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2017-10-06  9:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Mojca Miklavec; +Cc: Johannes Hielscher

On 10/6/2017 9:10 AM, Mojca Miklavec wrote:

> [1] https://www.kickstarter.com/projects/pine64/pine-a64-first-15-64-bit-single-board-super-comput

so why not:

https://www.parallella.org/board/

(luigi will love it to mess with all these extra cores)

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

* Re: installing ConTeXt on ARM linux
  2017-10-06  9:46         ` Hans Hagen
@ 2017-10-06 10:37           ` Floris van Manen
  2017-10-06 11:42             ` Risposta: " MF
  0 siblings, 1 reply; 14+ messages in thread
From: Floris van Manen @ 2017-10-06 10:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Johannes Hielscher, Mojca Miklavec


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

i have this snazzy little €30 quad core ARM board with 8GB eMMC.
It runs my python3 scripts at 1/3 the speed of my MacBookPro mid 2009.

http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Plus2

To me it looks like a perfect network ConTeXt server.
If there is something i can do to get the ConTeXt ARM going, please let me know.


.F



> On 6 Oct 2017, at 11:46, Hans Hagen <pragma@wxs.nl> wrote:
> 
> On 10/6/2017 9:10 AM, Mojca Miklavec wrote:
> 
>> [1] https://www.kickstarter.com/projects/pine64/pine-a64-first-15-64-bit-single-board-super-comput
> 
> so why not:
> 
> https://www.parallella.org/board/
> 
> (luigi will love it to mess with all these extra cores)
> 
> -----------------------------------------------------------------
>                                          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
> ___________________________________________________________________________________


[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 874 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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] 14+ messages in thread

* Risposta:  installing ConTeXt on ARM linux
  2017-10-06 10:37           ` Floris van Manen
@ 2017-10-06 11:42             ` MF
  2017-10-06 12:57               ` Hans Hagen
  2017-10-06 14:06               ` Floris van Manen
  0 siblings, 2 replies; 14+ messages in thread
From: MF @ 2017-10-06 11:42 UTC (permalink / raw)
  To: ntg-context

Il giorno ven, 06/10/2017 alle 12.37 +0200, Floris van Manen ha
scritto:
> i have this snazzy little €30 quad core ARM board with 8GB eMMC.
> It runs my python3 scripts at 1/3 the speed of my MacBookPro mid
> 2009.
> 
> http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Plus2
> 
> To me it looks like a perfect network ConTeXt server.
> If there is something i can do to get the ConTeXt ARM going, please
> let me know.
> 
> 
> .F
> 

You could follow this:

https://www.armbian.com/nanopi-neo-plus2/

Once they get to support it, you could download the texlive context
package that comes with Debian.

Best wishes,
Massi
___________________________________________________________________________________
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] 14+ messages in thread

* Re: Risposta: installing ConTeXt on ARM linux
  2017-10-06 11:42             ` Risposta: " MF
@ 2017-10-06 12:57               ` Hans Hagen
  2017-10-06 14:06               ` Floris van Manen
  1 sibling, 0 replies; 14+ messages in thread
From: Hans Hagen @ 2017-10-06 12:57 UTC (permalink / raw)
  To: ntg-context

On 10/6/2017 1:42 PM, MF wrote:
> Il giorno ven, 06/10/2017 alle 12.37 +0200, Floris van Manen ha
> scritto:
>> i have this snazzy little €30 quad core ARM board with 8GB eMMC.
>> It runs my python3 scripts at 1/3 the speed of my MacBookPro mid
>> 2009.
>>
>> http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO_Plus2
>>
>> To me it looks like a perfect network ConTeXt server.
>> If there is something i can do to get the ConTeXt ARM going, please
>> let me know.
>>
>>
>> .F
>>
> 
> You could follow this:
> 
> https://www.armbian.com/nanopi-neo-plus2/
> 
> Once they get to support it, you could download the texlive context
> package that comes with Debian.
normally we're a bit ahead of texlive and we use the compile farm to 
make binaries then (either of not via cross compiling)

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

* Re: Risposta:  installing ConTeXt on ARM linux
  2017-10-06 11:42             ` Risposta: " MF
  2017-10-06 12:57               ` Hans Hagen
@ 2017-10-06 14:06               ` Floris van Manen
  2017-10-06 14:42                 ` Risposta: " MF
  1 sibling, 1 reply; 14+ messages in thread
From: Floris van Manen @ 2017-10-06 14:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


> On 6 Oct 2017, at 13:42, MF <massifr@fastwebnet.it> wrote:
> 
> Once they get to support it, you could download the texlive context
> package that comes with Debian.

thanks for the hint.
it turns out that the ubuntu distribution for the nanopi board has the context packages included already.
(and it works ;-)


mtx-context     | ConTeXt Process Management 0.61
mtx-context     |
mtx-context     | main context file: /usr/share/texmf/tex/context/base/context.mkiv
mtx-context     | current version: 2015.05.18 12:26


This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/Debian) (rev 5238)

Execute  'luatex --credits'  for credits and version details.

There is NO warranty. Redistribution of this software is covered by
the terms of the GNU General Public License, version 2 or (at your option)
any later version. For more information about these matters, see the file
named COPYING and the LuaTeX source.

Copyright 2015 Taco Hoekwater, the LuaTeX Team.



.F

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 874 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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] 14+ messages in thread

* Risposta: Risposta: installing ConTeXt on ARM linux
  2017-10-06 14:06               ` Floris van Manen
@ 2017-10-06 14:42                 ` MF
  0 siblings, 0 replies; 14+ messages in thread
From: MF @ 2017-10-06 14:42 UTC (permalink / raw)
  To: ntg-context

Il giorno ven, 06/10/2017 alle 16.06 +0200, Floris van Manen ha
scritto:
> > On 6 Oct 2017, at 13:42, MF <massifr@fastwebnet.it> wrote:
> > 
> > Once they get to support it, you could download the texlive context
> > package that comes with Debian.
> 
> thanks for the hint.
> it turns out that the ubuntu distribution for the nanopi board has
> the context packages included already.
> (and it works ;-)
> 
> 
> mtx-context     | ConTeXt Process Management 0.61
> mtx-context     |
> mtx-context     | main context file:
> /usr/share/texmf/tex/context/base/context.mkiv
> mtx-context     | current version: 2015.05.18 12:26
> 

That is quite old.

I read that the H5 CPU is an ARMv8-A, that is user space compatible
with 32bit ARM software.

You could try this:

- edit first-setup.sh

- comment out the line 

  cpu=`uname -m`

  like this:

  # cpu=`uname -m`

- in the following line write this:

  cpu = "armv7l"

- save and run the script

This hack is to make the script believe it's running on an ARM 32 bit
platform, and download the latest ARM 32 bit beta of ConTeXt.
(still there could be a problem with the platform, soft or hardware
floating point, let us know)

I can't assure that it works, it's a hack, but it should not brick your
board.

Best wishes,
Massi
___________________________________________________________________________________
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] 14+ messages in thread

* Re: issue with external image and PDF/A-3a
  2017-10-05 20:40   ` Pablo Rodriguez
  2017-10-05 20:52     ` installing ConTeXt on ARM linux Floris van Manen
@ 2017-10-10 14:35     ` Peter Rolf
  2017-10-10 20:15       ` Pablo Rodriguez
  1 sibling, 1 reply; 14+ messages in thread
From: Peter Rolf @ 2017-10-10 14:35 UTC (permalink / raw)
  To: ntg-context

Am 05.10.2017 um 22:40 schrieb Pablo Rodriguez:
> On 10/05/2017 09:05 PM, luigi scarso wrote:
>> On Thu, Oct 5, 2017 at 8:18 PM, Pablo Rodriguez wrote:
>>> [...]
>>> Well, this is a minimal sample, but my real document is much bigger. Is
>>> there any way to convert the stream to something that ConTeXt can handle
>>> directly?
>>
>> hm, the only reliable way that I know w is to convert it to a flattened png
> 
> Many thanks for your reply, Luigi.
> 
> The real graphic is a vector logo and I need to keep it as a vector
> image. I converted it from a SVG source into a PDF document (years ago).
> 
> I cannot remember if the vector image contains transparency. If needed,
> I would remove it from the image.
> 
> The way to convert it may be using Inkscape into a PostScript document
> and then to MetaPost using pstoedit (as I have just discovered).
>

Just a hint:

pstoedit seems to be incompatible (uses a deprecated option) with the
actual gs (v9.22). I tested it with v9.18 and all worked fine. Of course
the transparency was removed in the process of the eps export. Not a
real problem with the metapost code at hand.

pstoedit -v -ssp -f "mpost:" transparent.eps transparent.mp

Tested on Windows 10 (1703), Inkscape v0.92.2, gs v9.18, pstoedit v3.70;
all 64bit

> Is that right or could something get lost in the translation?
> 
All unsupported features (like transparency).

> Many thanks for your help,
> 
> Pablo
> 

Best wishes,  Peter
___________________________________________________________________________________
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] 14+ messages in thread

* Re: issue with external image and PDF/A-3a
  2017-10-10 14:35     ` issue with external image and PDF/A-3a Peter Rolf
@ 2017-10-10 20:15       ` Pablo Rodriguez
  0 siblings, 0 replies; 14+ messages in thread
From: Pablo Rodriguez @ 2017-10-10 20:15 UTC (permalink / raw)
  To: ntg-context

On 10/10/2017 04:35 PM, Peter Rolf wrote:
> Just a hint:
> 
> pstoedit seems to be incompatible (uses a deprecated option) with the
> actual gs (v9.22). I tested it with v9.18 and all worked fine. Of course
> the transparency was removed in the process of the eps export. Not a
> real problem with the metapost code at hand.
> 
> pstoedit -v -ssp -f "mpost:" transparent.eps transparent.mp

Many thanks for your reply, Peter.

pstoedit uses a very basic PostScript drawing model that isn’t enough
for the vectors I need to convert.

>> Is that right or could something get lost in the translation?
>>
> All unsupported features (like transparency).

I found the command for the transparency issues:

  \setupcolors[pagecolormodel=auto]

At least, veraPDF doesn’t complain anymore.

Only color profiles for external figures have to be solved.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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] 14+ messages in thread

end of thread, other threads:[~2017-10-10 20:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-05 18:18 issue with external image and PDF/A-3a Pablo Rodriguez
2017-10-05 19:05 ` luigi scarso
2017-10-05 20:40   ` Pablo Rodriguez
2017-10-05 20:52     ` installing ConTeXt on ARM linux Floris van Manen
2017-10-06  6:31       ` Hans Hagen
2017-10-06  7:10       ` Mojca Miklavec
2017-10-06  9:46         ` Hans Hagen
2017-10-06 10:37           ` Floris van Manen
2017-10-06 11:42             ` Risposta: " MF
2017-10-06 12:57               ` Hans Hagen
2017-10-06 14:06               ` Floris van Manen
2017-10-06 14:42                 ` Risposta: " MF
2017-10-10 14:35     ` issue with external image and PDF/A-3a Peter Rolf
2017-10-10 20:15       ` Pablo Rodriguez

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