Ruby on Rails adding PDFs to partials - ruby-on-rails

I have a rails form that a user fills out, and later they can print it off as a PDF. The content is very similar (removed navbar and links, etc).
Now I need to add PDF documents at specific locations of the PDF version of the form.
For example, take a form for a rental application that has the property details, first tenant details, pdf document, followed by a second tenants details, another pdf document.
I'm currently using PDFkit to generate PDFs from html. But I'm open to suggestions.
Thanks,

Related

Is it possible to add link to a particular page in the same PDF

I am using wicked_pdf to generate a PDF file.
Is it possible to add a link to a particular page in the same PDF.
For example, I need to add a link to page 4 of the PDF on page 1.

Can Orbeon generate an HTML document of a form instead of a PDF?

Orbeon provides a button to generate a PDF version of a form. It appears that it is generating an HTML document and then that is being converted to PDF. I am looking for a way to get that HTML document instead of the PDF. Is this possible?
This is currently not possible. It is correct that Orbeon Forms first generates HTML and then converts that to PDF (with the automatic PDF mode).

Can not generate _blank links on PDF via pdfkit on rails app

I have a rails app that generates a pdf for a given html partial. In the partial I have a number of links that have a target of _blank, however in the generated PDF the target looks like it is being ignored.
I just want the pdf to open links in a new tab/window.
A collaborators from PDFKIT said
"This sounds like a problem with wkhtmltopdf (which is what renders the pdf from the html). (Pdfkit just wires up everything between ruby/rails and that binary.)"
Any help would be appreciated.
Regards,
Sean Hubers Answer:
PDFs are not marked up with HTML. How a link click is handled in a PDF
depends on the PDF viewer you are using. Modern browsers with built-in
PDF viewers may navigate to the page within the same frame as the PDF
view and that is not something that can be controlled with an HTML
element attribute. What happens if your link is clicked when the PDF
is being viewed in Adobe Acrobat or Mac Preview? You're at the whim of
the software and operating system. Sorry to bear the bad news but this
is the reality of the PDF format.

IOS7: How to add hyperlinks in a pdf file?

I created a pdf file with 5 pages in the iPad's document directory.
Each page has a paragraph describing the page (e.g. "Page1", "Page2", etc.)
The pdf is totally code generated using UIGraphicsBeginPDFPage.
I would like to change the paragraph in an hyperlink targeting another page inside the pdf file (or an external webpage).
So when the pdf is opened in a PDF reader, the user could change page just clicking on the hyperlink.
Is this something possible with the SDK?
Thank you in advance

How does fckeditor(grails plugin) store images?

I started to learn grails and now I am trying to develop a simple blog.
I created the domain model(User, Tag, Comment, Category, Post), controllers.
I installed fckeditor plugin(for adding new posts). I want to add ui interface, which will be support wysiwyg editor.
But I do not understand how does fckeditor store images, which will be linked to post.
Advice please some links or code samples.
... the editor stores the images in a folder that you need to specify. If I remember correctly it will insert the photo at point of cursor in the editor panel. There's another way to deal with it also. Upload your images/create thumbnails and where you have the thumbnails displayed on the page (say as links to full blown pixes) drag one onto the fckeditor pane and it will drop the thumbnail/link at cursor.
I'm sure you've been here as well ;-)

Resources