ruby Developr

Online archive of ruby developer related lists

Prawn-ruby topics

Thread Replies Last post by Updated on
Document with sections, each with it's own page numbering?
...I have a document that is being generated perfectly, thanks to Prawn. I have one remaining challenge that I suspect Prawn can handle, I'm just not sure how. I have a lot of experience with Prawn v0....
3 wchrisjohnson 2012-Feb-23 21:02
/AS in PDF spec
...I'm having trouble finding a setting documented in the PDF spec which I think is why pdf-reader/prawn is having trouble reading the document. I have this check box field within a PDF: 93 0 obj << /...
4 Nick Hammond 2012-Feb-20 01:02
column_box new column callback?
...Hi, I am wondering whether there is a way to find out when in column_box a new column has started. Is there a callback or a hook or any other chance for a notification? Greetings Michael Kastner ...
6 Michael Kastner 2012-Feb-17 16:02
Requesting some guidance and advice...
...Howdy Everyone! First, I'm really digging Prawn. It's very nice to work with, especially coming from the mess of PDF::Writer reports I've had to deal with these past several years. Second, as allu...
4 Mel Riffe 2012-Feb-16 04:02
Table rows and new page
...Hello, I am using prawn 0.12.0 and I am having some trouble with table rows and new pages. For example, if the height of a table row is to big and doesn't fit on the rest of the page it creates a new ...
4 Dimitris 2012-Feb-14 14:02
Error "no unicode cmap for font" with font Webdings and Wingdings
...Hi, I would like to use the fonts Webdings and Wingdings in my pdf to insert some little picture but when I try to use this fonts ( I added it at the font_families and use it with text and <font mar...
6 Adrien Coquio 2012-Feb-14 13:02
Transparent PNGs memory intensive
...We use prawn for all PDF generation in our raise app. we have delayed_job background workers which picks up certain records from database and generate a PDF document of them. In that document, there ...
1 luckydev 2012-Feb-13 13:02
Fixed table width not working when using colspan
...Hi. I'm having troubles with using colspan. Consider this simplified example: table [ [{content: 'A', colspan: 3}], ['A', 'B', 'C'] ], width: 400 table [ [{content: 'A'*10, colspan: 3}], ['A...
2 bohemian 2012-Feb-10 20:02
Pdf.draw_text With a Real 0x011 Tab Char
...My output is PDF with several QR codes, and the scanner reading the QR code is attached to a legacy system that interprets Tab as "jump to the next input field". Is there any way to stick actual esca...
12 Randy Parker 2012-Feb-10 19:02
undefined method `border_width=' for #<Prawn::Table:0xac1af5c>
...I'm using praw (0.12.0), third rails, ruby 1.9.2, below is my code in a template: sales.pdf.prawn items = @order.cart.line_items.map do |item| [ item.product.name, item.quantity, number...
2 Arthur Martins 2012-Feb-10 17:02
Three pieces of text, separately aligned, on the same line...
...Howdy, I've recently started using Prawn, not in anger, but definitely in earnest; I'm converting PDF::Writer documents into Prawn::Documents. I implemented one of our reports as a Spike and was ab...
3 Mel Riffe 2012-Feb-08 13:02
Generate pdf inside another pdf
...I got two Prawn::Document subclasses, InvoiceDocument and GroupedInvoiceDocument. The latter acts as sort of index for other invoices and is not needed always, hence it is split into its own class. W...
2 yogi 2012-Feb-08 03:02
The indent of a table collapses.
...Hi, I am not good at English. I am using prawn version 0.8.4 When a table with many lines is indented and printed, after new page, an indent will become invalid. Even if it new page, what should I ...
2 naopontan 2012-Feb-08 02:02
PDF-attachments (that is: attachments to a PDF-file, not email)
...Hi if I overlook this information in the available Prawn-documentation, pse feel free to point me there: Is there currently a way to make Prawn attach files to a given PDF or one in creation? The i...
2 de_google_the_web 2012-Feb-08 02:02
Possible to construct Prawn::Document inside another Prawn::Document
...I have two sub classes of Prawn::Document, InvoiceDocument and GroupedInvoiceDocument. As the names implies the latter is sort of index of multiple associated regular invoices. What I want to do is th...
1 yogi 2012-Feb-08 02:02
link breaks?
...Hi, does the text method render line breaks? Michael Kastner ...
2 Michael Kastner 2012-Jan-26 12:01
Equally distribute text across two columns in column box
...Hi, is there a way to distribute a text equally across to columns in a column box? Maybe I am doing something wrong here, but if I do not explicitly set the height value only the first column is bei...
4 Michael Kastner 2012-Jan-24 05:01
Is it possible to have a table with mixed solid and dashed borders?
...Hi, First I want to say thanks for Prawn. It's great! I'm trying to render a PDF with tabular data where I'd like to have mixed solid and dashed borders like below. -------------------------------...
3 tb 2012-Jan-09 13:01
PDF report with custom styled text
...Dear all, I've switched to prawn from wicked_pdf and I felt in love with prawn! No more CSS hacks or useless HTML! But I have a big problem and I hope someone can help me! I have to generate a set o...
4 David Saitta 2012-Jan-06 17:01
undefined method `font_style=' for #<Prawn::Table::Cell::SpanDummy
...Is there perhaps some incompaibility with colspan and row() methods. Please see code extracs and error message below. table(line_items(sh)) do row(0).font_style = :bold ... ...
2 Vecchio Coder 2011-Dec-30 18:12