muriloventuroso / pdftricks

A simple, efficient application for small manipulations in PDF files using Ghostscript.
90 stars 14 forks source link

Text becomes unselectable after merging #27

Closed Appeltabak closed 5 years ago

Appeltabak commented 5 years ago

The application uses convert to merge the PDF files, which converts the page into images and therefore making previously selectable text unselectable. Is the there a specific reason why convert is used and not gs, like with the splitting option?

muriloventuroso commented 5 years ago

With convert you can include images in the merge. I did not have much success in this kind of operation with gs

Appeltabak commented 5 years ago

When I execute gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined.pdf -dBATCH file-1.pdf file-2.pdf I was able to merge two pdf's with images successfully. What went exactly wrong when you tried to merge with gs?

muriloventuroso commented 5 years ago

It would not image inside PDF and yes image directly. Merge PDF + PNG. I'm implementing an alternate way to fix this. When there are image files to merge with PDF I will first convert the image to PDF and then merge with the gs.

Appeltabak commented 5 years ago

A, alright, it wasn't obvious to me that images were allowed. Just saw the 'Merge PDF' subtext mentioning it. My bad :grin: Looking forward for your fix