issue with external image and PDF/A-3a
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.... 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
On Thu, Oct 5, 2017 at 8:18 PM, Pablo Rodriguez
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....
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
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
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
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?
On 10/5/2017 10:52 PM, Floris van Manen wrote: 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 -----------------------------------------------------------------
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-...
On 10/6/2017 9:10 AM, Mojca Miklavec wrote:
[1] https://www.kickstarter.com/projects/pine64/pine-a64-first-15-64-bit-single-...
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 -----------------------------------------------------------------
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
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-...
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 ___________________________________________________________________________________
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
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 -----------------------------------------------------------------
On 6 Oct 2017, at 13:42, MF
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
Il giorno ven, 06/10/2017 alle 16.06 +0200, Floris van Manen ha scritto:
On 6 Oct 2017, at 13:42, MF
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
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
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
participants (7)
-
Floris van Manen
-
Hans Hagen
-
luigi scarso
-
MF
-
Mojca Miklavec
-
Pablo Rodriguez
-
Peter Rolf