Jason Barnabe
Jason Barnabe
If anyone's interested, here's what I'm doing to work around it. This will show a locale-formatted date instead of an "on..." string. You need to use `` for this, but...
I found that I could read this document with origami by running it through `gs -o output.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress input.pdf` first. So not sure if this is a known "limitation"...
With 2.0.3 the `pdf.sign` call no longer fails, but if I add `pdf.save(output_file)` at the end of the script above, I get: ``` TypeError: no implicit conversion of nil into...
Solution seems to be to first ```ruby page.add_font(Origami::Font::Type1::Standard::Helvetica.new.pre_build, :Helvetica) ``` and then ```ruby contents.write('my text', { x: 30, y: 30, size: 8, leading: 8 * 1.2, font: :Helvetica, }) ```
Any of these seem sensible to me: - Make font a required argument - Use a (working!) default font - Use a font used elsewhere in the PDF (is there...
I'm adding images to PDFs with no problems other than this one. Those 300s really do represent the image's dimensions. ```ruby require 'origami' include Origami def add_kitty(cm_with_size) pdf = PDF.read('pdf-sample.pdf')...
Done in 5563e9d486fa472d25786cf33f24c838dd86b667.
Points 2 and 3 are fixed by https://github.com/sunitparekh/data-anonymization/pull/57
I believe this can be caused by uploading an unsupported file type (like JFIF) to Active Storage and then attempting to view a scaled version of the file.
To get the exception from console: Download [a JFIF file](https://filesamples.com/samples/image/jfif/sample1.jfif), then ``` require 'vips' ImageProcessing::Vips::Processor.call(source: '/path/to/sample1.jfif', loader: { page: 0 }, operations: [[:resize_to_limit, [200, 200]]], saver: {}, destination: "/tmp/output.jfif") ```...