[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 06-23-2008, 03:30 PM   #1 (permalink)
NamePros Member
 
Join Date: May 2006
Posts: 160
81.00 NP$ (Donate)

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.

Thanks...
TwistMyArm is offline  
Old 07-10-2008, 05:19 PM   #2 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

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.
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 07-10-2008, 05:58 PM   #3 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

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

Quote:
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.

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...
weblord is offline  
Old 07-10-2008, 06:04 PM   #4 (permalink)
NamePros Member
 
Join Date: May 2006
Posts: 160
81.00 NP$ (Donate)

TwistMyArm is on a distinguished road


Quote:
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
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, 06:07 PM   #5 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

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

Quote:
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).

The problem is that I'm not the one actually creating the PDFs...
weblord is offline  
Old 07-10-2008, 06:30 PM   #6 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

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)
Quote:
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.
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.
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 07-10-2008, 06:32 PM   #7 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

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
my given option is from 72dpi to 300dpi
that solves it.

Quote:
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.
weblord is offline  
Old 07-10-2008, 06:38 PM   #8 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

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)
Quote:
Originally Posted by weblord
ive already answered that read this:
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.
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 07-10-2008, 06:40 PM   #9 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

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

Quote:
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.
weblord is offline  
Old 07-10-2008, 06:44 PM   #10 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

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)
Quote:
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.
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 07-10-2008, 06:49 PM   #11 (permalink)
NamePros Legend
 
weblord's Avatar
 
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,840
21,700.43 NP$ (Donate)

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/
weblord is offline  
Old 07-11-2008, 04:35 PM   #12 (permalink)
NamePros Member
 
Join Date: May 2006
Posts: 160
81.00 NP$ (Donate)

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

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 11:51 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85