Code Monkey home page Code Monkey logo

Comments (9)

boazsegev avatar boazsegev commented on May 20, 2024

Hi @LeptonHeavy,

Thank you so much for pointing this out 👍 👍 👍

I uploaded a patched version to github. Could you check that this resolves the issue?

Thanks,
Bo.

from combine_pdf.

EmberSher avatar EmberSher commented on May 20, 2024

I'm kind of new to github, so I'm still getting used to the functions of these comments.

I'm still having this same problem. Here's the error again:

C:/Ruby21/lib/ruby/gems/2.1.0/gems/combine_pdf-0.2.18/lib/combine_pdf/pdf_public.rb:303:in 'insert': undefined method 'update' for nil:NilClass (NoMethodError) from C:/Ruby21/lib/ruby/gems/2.1.0/gems/combine_pdf-0.2.18/lib/combine_pdf/pdf_public.rb:275:in '<<' from addinfo.rb:23:in '<main>'

My code is straight out of the combine_pdf.rb, and looks like this:
pdf = CombinePDF.new pdf << CombinePDF.load("file1.pdf") pdf << CombinePDF.load("file2.pdf") pdf.save "combined.pdf"

Since I'm new to github, I might simply not have the patch. I re-downloaded the zip, thinking that might solve the issue, but unfortunately it didn't. I'd love to use this gem for a project I'm working on for a class, though!

from combine_pdf.

boazsegev avatar boazsegev commented on May 20, 2024

After downloading the zip, you need to copy (and overwrite) the pdf_public.rb file to the C:/Ruby21/lib/ruby/gems/2.1.0/gems/combine_pdf-0.2.18/lib/combine_pdf folder (the gem's folder).

After you overwrite the gem installation's file, you should have the patch.

The error might be resolved... of the error might move to a different line.

This week is finals at my collage, so I didn't get around to testing and releasing the patch. I'm not sure why the issue didn't come up with any of my pdf files when I was testing the 0.2.18 version.

from combine_pdf.

boazsegev avatar boazsegev commented on May 20, 2024

I released a fixed version (v.0.2.20) - please check that this actually fixes the issue for you.

from combine_pdf.

EmberSher avatar EmberSher commented on May 20, 2024

Alrighty! Thanks! I'll take a look right now

from combine_pdf.

EmberSher avatar EmberSher commented on May 20, 2024

It worked! Thank you!

from combine_pdf.

boazsegev avatar boazsegev commented on May 20, 2024

@EmberSher,

Thanks for letting me know and for reporting this issue and your experience.

@LeptonHeavy thanks again. Let me know if you have any issues, I'm closing this one for now.

from combine_pdf.

LeptonHeavy avatar LeptonHeavy commented on May 20, 2024

confirming that 0.2.20 works for me as well!
thanks for the speedy fix!

from combine_pdf.

boazsegev avatar boazsegev commented on May 20, 2024

@LeptonHeavy , thanks for keeping me posted 👍

from combine_pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.