Coder Social home page Coder Social logo

Comments (11)

Emulator000 avatar Emulator000 commented on August 26, 2024 9

@bn3t @edulix actually I did this.

I created a PR #117 with all necessary code.

Once @J-F-Liu will merge it, you'll able to this with this Rust library.

from lopdf.

J-F-Liu avatar J-F-Liu commented on August 26, 2024

There are many objects related to pages, in Resources. To merge 2 pdf files, merge all the objects, then rearrange trailer, Catalog and Pages objects.

from lopdf.

yodatak avatar yodatak commented on August 26, 2024

Hi i'm interested in this did you achieve @bn3t ?

from lopdf.

bn3t avatar bn3t commented on August 26, 2024

Hi @yodatak, no I didn't make any progress on this. In the meanwhile, I still use a small tool I've wrttten in Go with Unidoc : pdfmerge

from lopdf.

edulix avatar edulix commented on August 26, 2024

@J-F-Liu is this easy to do? can you provide some tips or some sample code?

from lopdf.

J-F-Liu avatar J-F-Liu commented on August 26, 2024

I use pdfunite to do the job.

from lopdf.

edulix avatar edulix commented on August 26, 2024

I meant if it is easy to do with lopdf library, although thanks for the recommendation.

from lopdf.

J-F-Liu avatar J-F-Liu commented on August 26, 2024

It is possible, but need to sort out a detailed algorithm.

from lopdf.

bn3t avatar bn3t commented on August 26, 2024

It seemed far fetched for me to do it with lopdf. I still use the tool I wrote in go and does exactly what I needed: https://github.com/bn3t/pdfmerge.

from lopdf.

robyoung avatar robyoung commented on August 26, 2024

Can this issue be closed now? There is an example for merging PDFs in the docs now.

from lopdf.

bn3t avatar bn3t commented on August 26, 2024

Yes thanks a lot.

from lopdf.

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.