The inkscape command works okay from the command line. Should I upload the SVG and manual PDF output somewhere? On 03-06-13 18:53, honyk wrote:
Sander Maijers wrote:
I have a few SVG graphics of multiple megabytes. They contain a lot of objects (text/shapes). All graphics except for one gets properly included in my ConTeXt document.
Marco Patzer wrote:
Maybe inkscape failed to convert the file. Is a corresponding m_k_i_v_filename.svg.pdf file generated?
It might be informative to try running the Inkscape conversion manually. This is the command line ConTeXT uses:
inkscape "%oldname%" --export-dpi=600 -A "%newname%"
(The quotation marks are literal: they are there in case the filename has spaces, e.g.)
If processing in Inkscape fails, you can try another tool: http://xmlgraphics.apache.org/batik/tools/rasterizer.html
It can (despite its name) transcode SVG to vector PDF:
java -Xmx2G -jar batik-rasterizer.jar -m application/pdf image.svg
In that case you have to transcode your files first and reference PDF variants in your input.
Jan
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Sander wrote:
The inkscape command works okay from the command line.
Thanks for checking this! Hmm, so Inkscape is not the problem... Does ConTeXt still fail to include the picture when you make a minimal document containing only some text and the problematic SVG?
Should I upload the SVG and manual PDF output somewhere?
Yes, if you could, that would be appreciated.
Cheers,
Sietse
On 4 June 2013 19:35, Sander Maijers
The inkscape command works okay from the command line. Should I upload the SVG and manual PDF output somewhere?
On 03-06-13 18:53, honyk wrote:
Sander Maijers wrote:
I have a few SVG graphics of multiple megabytes. They contain a lot of objects (text/shapes). All graphics except for one gets properly included in my ConTeXt document.
Marco Patzer wrote:
Maybe inkscape failed to convert the file. Is a corresponding m_k_i_v_filename.svg.pdf file generated?
It might be informative to try running the Inkscape conversion manually. This is the command line ConTeXT uses:
inkscape "%oldname%" --export-dpi=600 -A "%newname%"
(The quotation marks are literal: they are there in case the filename has spaces, e.g.)
If processing in Inkscape fails, you can try another tool: http://xmlgraphics.apache.org/batik/tools/rasterizer.html
It can (despite its name) transcode SVG to vector PDF:
java -Xmx2G -jar batik-rasterizer.jar -m application/pdf image.svg
In that case you have to transcode your files first and reference PDF variants in your input.
Jan
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On 05-06-13 12:38, Sietse Brouwer wrote:
Sander wrote:
The inkscape command works okay from the command line. Thanks for checking this! Hmm, so Inkscape is not the problem... Does ConTeXt still fail to include the picture when you make a minimal document containing only some text and the problematic SVG?
Should I upload the SVG and manual PDF output somewhere? Yes, if you could, that would be appreciated. Here is the PDF converted by hand from the SVG: https://docs.google.com/file/d/0BynsKFwk6jYJQlMxR3paNW0zS2s/edit?usp=sharing
I can upload the SVG in the evening, if you need it. I guess that is not useful because Inkscape can convert the SVG to PDF, it is just that ConTeXt does not include the graphic.
Cheers, Sietse
On 4 June 2013 19:35, Sander Maijers
wrote: The inkscape command works okay from the command line. Should I upload the SVG and manual PDF output somewhere?
On 03-06-13 18:53, honyk wrote:
Sander Maijers wrote:
I have a few SVG graphics of multiple megabytes. They contain a lot of objects (text/shapes). All graphics except for one gets properly included in my ConTeXt document.
Marco Patzer wrote:
Maybe inkscape failed to convert the file. Is a corresponding m_k_i_v_filename.svg.pdf file generated?
It might be informative to try running the Inkscape conversion manually. This is the command line ConTeXT uses:
inkscape "%oldname%" --export-dpi=600 -A "%newname%"
(The quotation marks are literal: they are there in case the filename has spaces, e.g.)
If processing in Inkscape fails, you can try another tool: http://xmlgraphics.apache.org/batik/tools/rasterizer.html
It can (despite its name) transcode SVG to vector PDF:
java -Xmx2G -jar batik-rasterizer.jar -m application/pdf image.svg
In that case you have to transcode your files first and reference PDF variants in your input.
Jan
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Wed, Jun 5, 2013 at 2:58 PM, Sander Maijers
On 05-06-13 12:38, Sietse Brouwer wrote:
Sander wrote:
The inkscape command works okay from the command line.
Thanks for checking this! Hmm, so Inkscape is not the problem... Does ConTeXt still fail to include the picture when you make a minimal document containing only some text and the problematic SVG?
Should I upload the SVG and manual PDF output somewhere?
Yes, if you could, that would be appreciated.
Here is the PDF converted by hand from the SVG: https://docs.google.com/file/**d/**0BynsKFwk6jYJQlMxR3paNW0zS2s/** edit?usp=sharinghttps://docs.google.com/file/d/0BynsKFwk6jYJQlMxR3paNW0zS2s/edit?usp=sharing
it says "Sorry, we are unable to generate a view of the document at this time. Please try again later." -- luigi
Hi Luigi, On 05-06-13 15:01, luigi scarso wrote:
On Wed, Jun 5, 2013 at 2:58 PM, Sander Maijers
mailto:S.N.Maijers@student.ru.nl> wrote: On 05-06-13 12:38, Sietse Brouwer wrote:
Sander wrote:
The inkscape command works okay from the command line.
Thanks for checking this! Hmm, so Inkscape is not the problem... Does ConTeXt still fail to include the picture when you make a minimal document containing only some text and the problematic SVG?
Should I upload the SVG and manual PDF output somewhere?
Yes, if you could, that would be appreciated.
Here is the PDF converted by hand from the SVG: https://docs.google.com/file/d/0BynsKFwk6jYJQlMxR3paNW0zS2s/edit?usp=sharing
it says "Sorry, we are unable to generate a view of the document at this time. Please try again later."
-- luigi
__
That is a preview window that only works for certain file types. You can download the file, for example by the menu bar in the top left corner. (I am not in the position to upload the file somewhere else now, so that's why I am using Google Drive.)
_________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Wed, Jun 5, 2013 at 3:06 PM, Sander Maijers
Hi Luigi, That is a preview window that only works for certain file types. You can download the file, for example by the menu bar in the top left corner. (I am not in the position to upload the file somewhere else now, so that's why I am using Google Drive.)
yes, but it says 0 bytes.
-- luigi
On 05-06-13 15:09, luigi scarso wrote:
On Wed, Jun 5, 2013 at 3:06 PM, Sander Maijers
mailto:S.N.Maijers@student.ru.nl> wrote: Hi Luigi, That is a preview window that only works for certain file types. You can download the file, for example by the menu bar in the top left corner. (I am not in the position to upload the file somewhere else now, so that's why I am using Google Drive.)
yes, but it says 0 bytes.
Excuse me. The file became truncated when I was renaming it and the OS froze, it indeed is 0 bytes now. This evening I will try upload it again.
-- 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Wed, Jun 5, 2013 at 3:13 PM, Sander Maijers
Excuse me. The file became truncated when I was renaming it and the OS froze, it indeed is 0 bytes now. This evening I will try upload it again.
can you also post a 7z compressed version of the SVG ? -- luigi
I almost forgot to upload the graphics. Here is the SVG: https://dl.dropboxusercontent.com/u/19254345/scatterplot_of_WER_vs_PPL.svg SVG (7z compressed): https://dl.dropboxusercontent.com/u/19254345/scatterplot_of_WER_vs_PPL.svg.7... PDF: https://dl.dropboxusercontent.com/u/19254345/scatterplot_of_WER_vs_PPL.svg.p... Best, Sander On 05-06-13 15:15, luigi scarso wrote:
On Wed, Jun 5, 2013 at 3:13 PM, Sander Maijers
mailto:S.N.Maijers@student.ru.nl> wrote: Excuse me. The file became truncated when I was renaming it and the OS froze, it indeed is 0 bytes now. This evening I will try upload it again.
can you also post a 7z compressed version of the SVG ?
-- 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Is anybody still interested to look into this issue? I need the graph for my thesis, which is due soon. On 08-06-13 12:04, Sander Maijers wrote:
I almost forgot to upload the graphics.
Here is the SVG: https://dl.dropboxusercontent.com/u/19254345/scatterplot_of_WER_vs_PPL.svg
SVG (7z compressed): https://dl.dropboxusercontent.com/u/19254345/scatterplot_of_WER_vs_PPL.svg.7...
PDF: https://dl.dropboxusercontent.com/u/19254345/scatterplot_of_WER_vs_PPL.svg.p...
Best, Sander
On 05-06-13 15:15, luigi scarso wrote:
On Wed, Jun 5, 2013 at 3:13 PM, Sander Maijers
mailto:S.N.Maijers@student.ru.nl> wrote: Excuse me. The file became truncated when I was renaming it and the OS froze, it indeed is 0 bytes now. This evening I will try upload it again.
can you also post a 7z compressed version of the SVG ?
-- 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________
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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Mon, Jun 10, 2013 at 1:04 AM, luigi scarso
On Mon, Jun 10, 2013 at 12:21 AM, Sander Maijers < S.N.Maijers@student.ru.nl> wrote:
Is anybody still interested to look into this issue? I need the graph for my thesis, which is due soon.
tomorrow morning
\starttext
\externalfigure[scatterplot_of_WER_vs_PPL.svg][height=\textheight,width=\textwidth] \externalfigure[scatterplot_of_WER_vs_PPL.svg.pdf][height=\textheight,width=\textwidth] \stoptext $ inkscape --version Inkscape 0.48.3.1 r9886 (Jan 29 2013) it's ok here on linux ubuntu 12.10 x86_64 -- luigi
Sander wrote:
All graphics except for one gets properly included in my ConTeXt document.
Since it's just the one graphic: Luigi, perhaps you could send Sander a copy of the .pdf you produced that didn't show problems? Luigi wrote:
$ inkscape --version Inkscape 0.48.3.1 r9886 (Jan 29 2013)
it's ok here on linux ubuntu 12.10 x86_64
I've got Inkscape 0.48.1 r9760 (Mar 22 2011) here on Linux Mint 11 (based on Natty), and that doesn't work. So perhaps it's a problem with Inkscape or the PDF library it uses. Sander, which version of Inkscape do you use? Cheers, Sietse
On Mon, Jun 10, 2013 at 11:23 AM, Sietse Brouwer
Sander wrote:
All graphics except for one gets properly included in my ConTeXt document.
Since it's just the one graphic: Luigi, perhaps you could send Sander a copy of the .pdf you produced that didn't show problems?
no problem, if Sender agrees .
-- luigi
I'm afraid I can't help, as this seems to be a PDF problem and I know
nothing about the PDF format.
ConTeXt correctly produces the converted file
`m_k_i_v_scatterplot_of_WER_vs_PPL.svg.pdf`, and that PDF displays
correctly when I open it standalone. But when I try to include the PDF
with
\includepages[m_k_i_v_scatterplot_of_WER_vs_PPL.svg.pdf]
I get a blank page. The size of the document does increase from 30 kB
to 266 kB, so the image PDF does get included, but somehow it doesn't
display. I haven't a clue why.
I hope somebody else can help you with this, or find a workaround. Good luck!
Cheers,
Sietse
On 10 June 2013 00:21, Sander Maijers
Is anybody still interested to look into this issue? I need the graph for my thesis, which is due soon.
On 08-06-13 12:04, Sander Maijers wrote:
I almost forgot to upload the graphics.
Here is the SVG: https://dl.dropboxusercontent.com/u/19254345/scatterplot_of_WER_vs_PPL.svg
SVG (7z compressed):
https://dl.dropboxusercontent.com/u/19254345/scatterplot_of_WER_vs_PPL.svg.7...
PDF:
https://dl.dropboxusercontent.com/u/19254345/scatterplot_of_WER_vs_PPL.svg.p...
Best, Sander
On 05-06-13 15:15, luigi scarso wrote:
On Wed, Jun 5, 2013 at 3:13 PM, Sander Maijers
mailto:S.N.Maijers@student.ru.nl> wrote: Excuse me. The file became truncated when I was renaming it and the OS froze, it indeed is 0 bytes now. This evening I will try upload it again.
can you also post a 7z compressed version of the SVG ?
-- 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________
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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On 2013–06–10 Sander Maijers wrote:
Is anybody still interested to look into this issue? I need the graph for my thesis, which is due soon.
It works here. \starttext \externalfigure [scatterplot_of_WER_vs_PPL] [width=\textwidth] \stoptext context version: 2013.06.07 12:25 Inkscape 0.48.3.1 r9886 Marco
Thanks for your tests. I do not get the PDF intermediate file, I can only produce it manually. Inkscape 0.48.4 r9939 (May 20 2013) ConTeXt 2013.06.07 12:25 I used this code: \placefigure [force] [scatterplot_of_WER_vs_PPL_baseline] {Scatterplot of WER vs. perplexity (baseline)} {\externalfigure[/tmp/scatterplot_of_WER_vs_PPL.svg.svg][factor=fit]} I use it in a big document with all kinds of floats, and this is the last of a 3 graphs with 'force' placement on a row. Also I want to use A3 landscape page dimensions, but now it is fit to an A4 portrait page and that does not work either. On 10-06-13 11:08, Marco Patzer wrote:
On 2013–06–10 Sander Maijers wrote:
Is anybody still interested to look into this issue? I need the graph for my thesis, which is due soon.
It works here.
\starttext \externalfigure [scatterplot_of_WER_vs_PPL] [width=\textwidth] \stoptext
context version: 2013.06.07 12:25 Inkscape 0.48.3.1 r9886
Marco
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Mon, Jun 10, 2013 at 12:26 PM, Sander Maijers
Thanks for your tests. I do not get the PDF intermediate file, I can only produce it manually.
Inkscape 0.48.4 r9939 (May 20 2013) ConTeXt 2013.06.07 12:25
I used this code:
\placefigure [force] [scatterplot_of_WER_vs_PPL_**baseline] {Scatterplot of WER vs. perplexity (baseline)} {\externalfigure[/tmp/**scatterplot_of_WER_vs_PPL.svg.** svg][factor=fit]}
I use it in a big document with all kinds of floats, and this is the last of a 3 graphs with 'force' placement on a row. Also I want to use A3 landscape page dimensions, but now it is fit to an A4 portrait page and that does not work either.
you should have m_k_i_v_scatterplot_of_WER_vs_PPL.svg.pdf somewhere
-- luigi
My question was in error ... All the time I overlooked the double .svg in the argument to \externalfigure for my last (this) plot. Sorry for the fuss! On 10-06-13 12:37, luigi scarso wrote:
On Mon, Jun 10, 2013 at 12:26 PM, Sander Maijers
mailto:S.N.Maijers@student.ru.nl> wrote: Thanks for your tests. I do not get the PDF intermediate file, I can only produce it manually.
Inkscape 0.48.4 r9939 (May 20 2013) ConTeXt 2013.06.07 12 tel:2013.06.07%2012:25
I used this code:
\placefigure [force] [scatterplot_of_WER_vs_PPL___baseline] {Scatterplot of WER vs. perplexity (baseline)}
{\externalfigure[/tmp/__scatterplot_of_WER_vs_PPL.svg.__svg][factor=fit]}
I use it in a big document with all kinds of floats, and this is the last of a 3 graphs with 'force' placement on a row. Also I want to use A3 landscape page dimensions, but now it is fit to an A4 portrait page and that does not work either.
you should have m_k_i_v_scatterplot_of_WER_vs_PPL.svg.pdf somewhere
-- 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (4)
-
luigi scarso
-
Marco Patzer
-
Sander Maijers
-
Sietse Brouwer