Questions tagged [combine-pdf]

11 questions
2
votes
1 answer

Combine_PDF in Ruby on Rails Active Storage Parsing Error

I have been tinkering with Combine_PDF to add a watermark to uploaded documents. I have managed to get it to work combining files locally hosted or through using net/http requests. I would like for it to watermark the file stored in active storage…
Brendan
  • 57
  • 6
2
votes
0 answers

combine_pdf gem : PDF is Encrypted! Attempting to decrypt - not yet fully supported

Trying to merge PDF file I'm using version (1.0.16) and tried (1.0.21) also, but still getting this error PDF is Encrypted! Attempting to decrypt - not yet fully supported. I'm able to open the file in preview without password. I see this issue,…
praaveen V R
  • 1,259
  • 1
  • 11
  • 20
1
vote
1 answer

Why my image doesn't load when using wicked_pdf_image_tag?

I'm creating a service to add a watermark to the top of a client pdf file. When I add it to the pdf source, the html text loads fine but not the image (a small square is shown instead). Here some piece of my…
1
vote
3 answers

How to combine/merge PDFs where one or more have optional content?

I have a Rails app that needs to be able to combine/merge PDFs where one or more of them have optional content. I'm able to merge PDFs without any issues with the CombinePDF gem when none of them have optional content, but when one does I get the…
amorimluc
  • 1,661
  • 5
  • 22
  • 32
1
vote
1 answer

How to use CombinePDF with Rails 6 (ActiveStorage) on heroku

I generate PDF documents using Prawn in Rails. For years I have only inserted jpg's into PDFs. More recently I've had a need to insert an external PDF into a Prawn PDF. The way to do this seems to be to merge PDFs together using CombinePDF. I…
hellion
  • 4,602
  • 6
  • 38
  • 77
0
votes
0 answers

CombinePDF.parse is unable to process some PDF files

Tech Stack used Ruby 2.5.8, Rails 5.0.7, Ruby Gems: combine_pdf Here is my sample code that is working for most of the PDF Urls hosted in S3, except one PDF. @pdf = CombinePDF.new @pdf <<…
siv rj
  • 1,451
  • 1
  • 14
  • 31
0
votes
1 answer

Validate PDF is stampable - Rails, Prawn, CombinePDF

I'm working at a company where we upload a good amount of PDFs, which we later stamp using Prawn. Occasionally these PDFs upload and save fine, but when we try to stamp them later they don't work and our managers have to re-convert the file, and…
0
votes
2 answers

Ignore a CombinePdf exception

I want to only skip the CombinePdf::ParsingError (Optional Content PDF files aren't supported and their pages cannot be safely extracted.) when i upload a pdf file inside my begin/rescue but it's not working, how can i do ? begin …
Steph
  • 27
  • 4
0
votes
0 answers

Ruby PDF generation with CombinePDF & StringIO removes "<" character

I can't for the life of me figure out how to make < show up in pdf generation using CombinePDF & StringIO. > shows up fine in the generated pdf but not <. I can't easily change the software I'm using and would ideally escape "<" so that it still…
Sam H.
  • 33
  • 1
  • 10
0
votes
1 answer

How use UTF-8 fonts with gem CombinePDF?

I use gem combine_pdf for load existed pdf file and add some text (in French) to it. But some specific charactets displaying poorly: https://drive.google.com/file/d/1LAiK3JJTDjbVpgXrA9ITfCTeYSVws37x/view?usp=sharing I…
0
votes
1 answer

WickedPDF generating blank pdfs when attempting to render multiple pdfs

I am using WickedPDF in a Rails 6 project to generate PDFs from HTML, and then combine them with prefilled PDF forms. The WickedPDF generated PDFs are split into two sections, each of which must be combined with a form. The forms must appear at the…