Lossless PDF generation with Prawn and table width

582 views
Skip to first unread message

graf.otodrakula

unread,
Jul 5, 2009, 2:25:44 AM7/5/09
to Prawn
Hey guys,

I've got two questions I cannot find the answer for:
a) How to make Prawn generate lossless PDFs (text only)? As far as I
can see it uses JPEG compression, which makes documents look ugly.
b) Is there any way to make table width 100%?

Thanks!

James Healy

unread,
Jul 5, 2009, 3:52:29 AM7/5/09
to prawn...@googlegroups.com
graf.otodrakula wrote:
> a) How to make Prawn generate lossless PDFs (text only)? As far as I
> can see it uses JPEG compression, which makes documents look ugly.

If your document is text only, then it should be 100% vector based. The
only time JPEG compression is used is when you embded a JPEG image.

-- James Healy <jimmy-at-deefa-dot-com> Sun, 05 Jul 2009 17:51:19 +1000

Gregory Brown

unread,
Jul 5, 2009, 10:53:33 AM7/5/09
to prawn...@googlegroups.com
On Sun, Jul 5, 2009 at 2:25 AM,
graf.otodrakula<graf.ot...@gmail.com> wrote:

>  b) Is there any way to make table width 100%?

Something like

table data, :width => bounds.width

Reply all
Reply to author
Forward
0 new messages