LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-15-2013, 11:08 AM   #31
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043

Quote:
Originally Posted by eXpander_ View Post
This gives very poor quality results due to its internal conversion algorithms. To increase the quality of the output, it is better to read the input PDF files with a higher density (in dots per inch (DPI)) and then resize the output density back to common DPI, 96 for example. I usually use a input density of 600 (after many trial and errors), and then resize with 93.75% (if you dont resize you will get a huge output file).

An example:

Code:
convert -density 600 fileinput_1.pdf fileinput2_.pdf -resize 93.75% output.pdf
Have you actually tried and confirmed that you need the -density?

I am well aware of this switch when converting a .pdf to .jpg. Standard density is 50 dpi or so, not even 96 IIRC. However, when I tested this command I posted yesterday I left out the -density on purpose, and the merged file happened to be the same resolution as the originals.

This is my version in case it is relevant:
Code:
Version: ImageMagick 6.6.0-4 2010-11-16 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
Besides, a density of 600 even for a single PDF usually brings your computer down on its knees.

jlinkels
 
Old 03-15-2013, 12:12 PM   #32
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 822

Rep: Reputation: 442Reputation: 442Reputation: 442Reputation: 442Reputation: 442
Quote:
Originally Posted by jlinkels View Post
Have you actually tried and confirmed that you need the -density?
By "Trial and Error" I really mean that I have "actually tried and confirmed" this on my own. I tried without density, but that gave me really poor results.

Quote:
Originally Posted by jlinkels View Post
I am well aware of this switch when converting a .pdf to .jpg. Standard density is 50 dpi or so, not even 96 IIRC. However, when I tested this command I posted yesterday I left out the -density on purpose, and the merged file happened to be the same resolution as the originals.
This is about merging pdf-files, not converting them to other formats.

Quote:
Originally Posted by jlinkels View Post
This is my version in case it is relevant:
Code:
Version: ImageMagick 6.6.0-4 2010-11-16 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
I use 6.7.7_10.

Quote:
Originally Posted by jlinkels View Post
Besides, a density of 600 even for a single PDF usually brings your computer down on its knees.

jlinkels
That's another question. I use pretty modern computers (minimum dual-cores), and it goes pretty fast (in seconds).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] merge pdf files with each file as a index entry in the big pdf ununun Linux - General 4 12-08-2017 07:23 AM
software for merging pdf files Diamantis Linux - Software 5 06-27-2008 04:13 PM
Tool to convert PDF files to office and vice versa linuxlover.chaitanya Linux - Software 2 05-01-2008 10:31 AM
Merging ,pdf files satimis Linux - General 6 11-21-2007 08:31 PM
Merging Two Files using C++ ckoniecny Programming 5 09-26-2006 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration