NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page DPIs of images in PDFs

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-23-2008, 04:30 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: May 2006
Posts: 160
TwistMyArm is on a distinguished road
 



DPIs of images in PDFs


Hi all,

I have a collection of PDFs that I will be printing at varying dimensions. Does anyone know how I could go about analysing the images embedded in the PDF to determine the 'DPI' of each image in the actual printout?

In reality, I can work out everything I need, so long as I can work out the dimensions of the 'element' that the images are in in the PDF.

Hopefully that makes sense to somebody: if not, feel free to say! I'm looking to do it with PHP in a Linux environment. I have tried with pCOS but apparently it's not possible, though I'm happy to be corrected.

If I need to pay for a library, I'm happy to do so, so long as the price, support and reliability are right.
????: NamePros.com http://www.namepros.com/programming/485167-dpis-of-images-in-pdfs.html

Thanks...
TwistMyArm is offline  
Old 07-10-2008, 06:19 PM   #2 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
I don't know much about Adobe Acrobat products, but you may need more than just Adobe Reader to extract the images and get their DPI... it may require a full version of Adobe Acrobat.
mholt is offline  
Old 07-10-2008, 06:58 PM   #3 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
you set the DPI in the print driver - in Windows XP,
for Adobe, go to the Control Panel, open the Printers, right-click on "Adobe
PDFWriter", then select properties. Click on "Preferences", "Page Setup",
then select the resolution in the "Graphic" section.

but if you do your design just for online purposes usually 72dpi is ok for .pdf images

Originally Posted by TwistMyArm
Hi all,

I have a collection of PDFs that I will be printing at varying dimensions. Does anyone know how I could go about analysing the images embedded in the PDF to determine the 'DPI' of each image in the actual printout?

In reality, I can work out everything I need, so long as I can work out the dimensions of the 'element' that the images are in in the PDF.

Hopefully that makes sense to somebody: if not, feel free to say! I'm looking to do it with PHP in a Linux environment. I have tried with pCOS but apparently it's not possible, though I'm happy to be corrected.
????: NamePros.com http://www.namepros.com/showthread.php?t=485167

If I need to pay for a library, I'm happy to do so, so long as the price, support and reliability are right.

Thanks...
__________________
Nabaza.com - Amaia
weblord is offline  
Old 07-10-2008, 07:04 PM THREAD STARTER               #4 (permalink)
NamePros Member
Join Date: May 2006
Posts: 160
TwistMyArm is on a distinguished road
 



Originally Posted by weblord
you set the DPI in the print driver - in Windows XP,
for Adobe, go to the Control Panel, open the Printers, right-click on "Adobe
????: NamePros.com http://www.namepros.com/showthread.php?t=485167
PDFWriter", then select properties. Click on "Preferences", "Page Setup",
then select the resolution in the "Graphic" section.

but if you do your design just for online purposes usually 72dpi is ok for .pdf images
Thanks weblord... I guess it wasn't as obvious as I was hoping, but I'm actually after a programmatic way of doing it (for a website, in particular).

The problem is that I'm not the one actually creating the PDFs...
TwistMyArm is offline  
Old 07-10-2008, 07:07 PM   #5 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
If that's the case then there's a need to know the pdf creator software that your programmer will use, advise him/her to get to the specific dpi you want.
dpi of images are not that important to be huge, since .pdf has built-in resolution fixer for images, it's not a big deal.
setting it up as 300dpi will make your .pdf bloated and will usually hang on load time.
setting it up like 72dpi is the set standard

Originally Posted by TwistMyArm
Thanks weblord... I guess it wasn't as obvious as I was hoping, but I'm actually after a programmatic way of doing it (for a website, in particular).
????: NamePros.com http://www.namepros.com/showthread.php?t=485167

The problem is that I'm not the one actually creating the PDFs...
__________________
Nabaza.com - Amaia
weblord is offline  
Old 07-10-2008, 07:30 PM   #6 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Originally Posted by weblord
If that's the case then there's a need to know the pdf creator software that your programmer will use, advise him/her to get to the specific dpi you want.
????: NamePros.com http://www.namepros.com/showthread.php?t=485167
dpi of images are not that important to be huge, since .pdf has built-in resolution fixer for images, it's not a big deal.
setting it up as 300dpi will make your .pdf bloated and will usually hang on load time.
setting it up like 72dpi is the set standard
Yeah but if you intend to print it you will need something above 200 DPI to look decent. In case you didn't notice his first phrase: "to print at various dimensions", the larger you print the larger the image would have to be (filesize), of course.
mholt is offline  
Old 07-10-2008, 07:32 PM   #7 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
ive already answered that read this:
http://www.namepros.com/2906998-post5.html
????: NamePros.com http://www.namepros.com/showthread.php?t=485167
my given option is from 72dpi to 300dpi
that solves it.

Originally Posted by mholt
Yeah but if you intend to print it you will need something above 200 DPI to look decent. In case you didn't notice his first phrase: "to print at various dimensions", the larger you print the larger the image would have to be (filesize), of course.
__________________
Nabaza.com - Amaia
weblord is offline  
Old 07-10-2008, 07:38 PM   #8 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Originally Posted by weblord
ive already answered that read this:
????: NamePros.com http://www.namepros.com/showthread.php?t=485167
http://www.namepros.com/2906998-post5.html
my given option is from 72dpi to 300dpi
that solves it.
You can't just print a 72 dpi image at 300 dpi. Your image will be not even 1/3 the size it shows up as on the screen. You need to format the image in the first place - before placing it in a PDF - to be above 200 DPI to be acceptable for good printing.
mholt is offline  
Old 07-10-2008, 07:40 PM   #9 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
format it at 300dpi and print at 300dpi res on screen and printer
i've already answered that as well
http://www.namepros.com/2906988-post3.html

Originally Posted by mholt
You can't just print a 72 dpi image at 300 dpi. Your image will be not even 1/3 the size it shows up as on the screen. You need to format the image in the first place - before placing it in a PDF - to be above 200 DPI to be acceptable for good printing.
__________________
Nabaza.com - Amaia
weblord is offline  
Old 07-10-2008, 07:44 PM   #10 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Originally Posted by weblord
format it at 300dpi and print at 300dpi res on screen and printer
i've already answered that as well
http://www.namepros.com/2906988-post3.html
It looks like he's not making the PDFs, though, just has a collection of them, so that point doesn't matter.
mholt is offline  
Old 07-10-2008, 07:49 PM   #11 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
for the op as well kindly rethink how you approach this? btw maybe pdf is not the solution, because pdf is made to be portable and small in file size not intended for high resolution printing but just for portable quick reading on the computer

but if you have the pdf's already you need a converter
http://www.google.com.ph/search?q=pd...ient=firefox-a

http://www.123fileconvert.com/
__________________
Nabaza.com - Amaia
weblord is offline  
Old 07-11-2008, 05:35 PM THREAD STARTER               #12 (permalink)
NamePros Member
Join Date: May 2006
Posts: 160
TwistMyArm is on a distinguished road
 



Thanks for all the posts guys. The thing is, this is not really something where I can change the approach: I'm coding up a web interface to a print shop that is to automate the checking of random jobs that are being uploaded by clients...

I think I may have found a program that will let me check the image details: if anyone is interested, I'll let you all know the result.
TwistMyArm is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:24 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger