Skip to content
Snippets Groups Projects
Commit 8d660754 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

pdflatex.pike should now work again

Rev: tutorial/Gfx.pmod:1.9
Rev: tutorial/pdflatex.pike:1.10
parent 7b2098ab
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ string mkjpg(mixed o,void|mapping options)
{
if(!options) options=(["quality":100]);
string g=Image.JPEG.encode(o,options);
return cached_write(g,"jpeg");
return cached_write(g,"jpg"); /* this has to be jpg, or pdftex won't work! -Hubbe */
}
#define PAPER_COLOUR 255,255,255
......
......@@ -29,7 +29,8 @@ string convert_gfx(TAG tag)
string file;
float dpi;
[file,dpi]=Gfx.convert( tag->params,
"png|jpg|pdf",
// "png|jpg|pdf",
"jpg|pdf",
300.0,
tag->data && Sgml.get_text(tag->data));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment