Giter Site home page Giter Site logo

impose's People

Contributors

jamis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

impose's Issues

Output looks weird

I am trying to impose 32 landscape A5 to A3. But it just repeats some images on all pages. Page numbers seems to be correct.

Screenshot 2019-06-03 at 22 10 13

using

impose -l quarto -o landscape -d A3 testpages_32.pdf

My pdf:s are too large for uploading.

on the left side of the pdf some images are missing

I noticed only some of the images on the left side of the pdf (after the pdf has been imposed) are missing. But on the right side there's nothing missing. Can someone help me with this issue? I'm using the folio layout A4 .

Breaks on most PDFs: ``_apply': undefined method '[]' for nil:NilClass (NoMethodError)`

MWE

# get this PDF
wget https://bayes.wustl.edu/etj/articles/random.pdf
impose random.pdf
/Library/Ruby/Gems/2.6.0/gems/pdf-impose-1.0.0/lib/pdf/impose/builder.rb:109:in `_apply': undefined method `[]' for nil:NilClass (NoMethodError)
        from /Library/Ruby/Gems/2.6.0/gems/pdf-impose-1.0.0/lib/pdf/impose/builder.rb:101:in `initialize'
        from /Library/Ruby/Gems/2.6.0/gems/pdf-impose-1.0.0/bin/impose:143:in `new'
        from /Library/Ruby/Gems/2.6.0/gems/pdf-impose-1.0.0/bin/impose:143:in `<top (required)>'
        from /usr/local/bin/impose:23:in `load'
        from /usr/local/bin/impose:23:in `<main>'

Ideas

The line in question is

source_width = @source.page(1).page_object[:MediaBox][2]

, and I believe this means that @source.page(1).page_object is nil.

Maybe this is therefore a bug in PDF::Reader?

PDF::Reader former API is now deprecated

First of all, great work man, thanks a lot!
As mentioned in the official repository, PDF::Reader former API is now deprecated.

Version 1.0.0 of PDF::Reader introduced a new page-based API that provides efficient and easy access to any page. The pre-1.0 API was deprecated during the 1.x release series, and has been removed from 2.0.0.

It would be awesome if you could update the API calls to the latest version.

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.