Bug#794066: dblatex: Way to control DPI of converted figures?

2016-09-17 Thread Andreas Hoenen
Petter Reinholdtsen  wrote:

> [Andreas Hoenen]
> > Hi Petter,
> >
> > with dblatex 0.3.8 and the new XML based configuration format you can
> > control the image resolution, compare
> >   file:///usr/share/doc/dblatex-doc/xhtml/manual/sec-specs.html
> > respectively
> >   http://dblatex.sourceforge.net/doc/manual/sec-specs.html
> >
> > Hope this helps and thus closing this report, feel free to reopen if
> > there are remaining issues.
>
> Thank you. I had a look at the page, but failed to see anything
> mentioning resolution or inkscape.

Oops, the http: link shows outdated manual revision 08.  The file: link
shows uptodate manual revision 09: there the first configuration example
contains the inkscape command with the --export-dpi parameter.

@BenoƮt: could you update the online manual?

>
> Perhaps you can add an example using the inkscape argument
> --export-dpi=300 in the documentation to make this clearer?
>
> --
> Happy hacking
> Petter Reinholdtsen

Regards, Andreas
-- 
Andreas Hoenen 
GPG: 1024D/B888D2CE
 A4A6 E8B5 593A E89B 496B
 82F0 728D 8B7E B888 D2CE


signature.asc
Description: PGP signature


Bug#794066: dblatex: Way to control DPI of converted figures?

2016-09-14 Thread Petter Reinholdtsen

[Andreas Hoenen]
> Hi Petter,
>
> with dblatex 0.3.8 and the new XML based configuration format you can
> control the image resolution, compare
>   file:///usr/share/doc/dblatex-doc/xhtml/manual/sec-specs.html
> respectively
>   http://dblatex.sourceforge.net/doc/manual/sec-specs.html
>
> Hope this helps and thus closing this report, feel free to reopen if
> there are remaining issues.

Thank you. I had a look at the page, but failed to see anything
mentioning resolution or inkscape.

Perhaps you can add an example using the inkscape argument
--export-dpi=300 in the documentation to make this clearer?

-- 
Happy hacking
Petter Reinholdtsen



Bug#794066: dblatex: Way to control DPI of converted figures?

2015-07-31 Thread Petter Reinholdtsen

The upstream author suggested a workaround on IRC. By replacing inkscape
with a wrapper looking like this:

  % cat bin/inkscape 
  #!/bin/sh
  # Workaround for URL: https://bugs.debian.org/794066 
  exec /usr/bin/inkscape --export-dpi=300 $@
  %

And then calling dblatex with bin in PATH, for example like this:

  PATH=`pwd`/bin:$PATH dblatex

This way the DPI of the generated bitmaps become 300.

He was not aware of any way to get a vector drawing included in the PDF
directly, and had plans to extend dblatex to make the figure conversion
code more customizable.

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#794066: dblatex: Way to control DPI of converted figures?

2015-07-30 Thread Petter Reinholdtsen

Package: dblatex
Version: 0.3.5-2

When trying to publish a PDF generated using dblatex on lulu.com, I was
told:

  We detected low resolution images in your file (pages 215, 221, 223,
  233, 262, 278). For best results we recommend image resolution of 300
  ppi.

According to the dblatex output, my SVG files were converted to PNG
using this command:

  inkscape -z -D --export-png=fig8.png  /tmp/project/1551.svg

The output  look like this, telling me the DPI is 90:

  inkscape -z -D --export-png=fig8.png /tmp/project/1551.svg
  Background RRGGBBAA: ff00
  Area 1.17345e-08:-2.25455e-07:333.96:333.348 exported to 334 x 333
pixels (90 dpi)
  Bitmap saved as: fig8.png

The inkscape manual page claim that the --export-dpi=DPI option can be
used to control the DPI.  For printing, the DPI should be 300.  Is there
some way to adjust how dblatex convert SVGs?

Perhaps it is possible to convert SVGs to a vector format that
latex/xetex understand, instead of using a pixel format?

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org