The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Converting .pdf to .jpg or .jpeg?

ThanatosThanatos Registered User regular
edited September 2009 in Help / Advice Forum
Is there a free program I can download that will allow me to do a right-click conversion from .pdf to .jpg or .jpeg?

I have a lot of single-page documents that I want to convert to .jpg for two reasons:

1. .jpg is way smaller than .pdf.

2. Windows does that thing where it will automatically let you page through .jpgs in a folder with a single click in the image viewer.

Any suggestions?

Thanatos on
«1

Posts

  • FeralFeral MEMETICHARIZARD interior crocodile alligator ⇔ ǝɹʇɐǝɥʇ ǝᴉʌoɯ ʇǝloɹʌǝɥɔ ɐ ǝʌᴉɹp ᴉRegistered User regular
    edited September 2009
    IIRC, the 14-day trial of NitroPDF (http://www.nitropdf.com/professional/trial.asp) doesn't put watermarks on output like other free trials do.

    Feral on
    every person who doesn't like an acquired taste always seems to think everyone who likes it is faking it. it should be an official fallacy.

    the "no true scotch man" fallacy.
  • ThanatosThanatos Registered User regular
    edited September 2009
    This is going to be a long-term thing.

    Thanatos on
  • PeregrineFalconPeregrineFalcon Registered User regular
    edited September 2009
    Bam.

    Virtual Image Printer driver. You should be able to easily batch up the entire directory of PDF files, set your default printer to that, and you're off.

    PeregrineFalcon on
    Looking for a DX:HR OnLive code for my kid brother.
    Can trade TF2 items or whatever else you're interested in. PM me.
  • ThanatosThanatos Registered User regular
    edited September 2009
    Okay, I can see I wasn't clear in the OP:

    I don't have the files right now. I'm going to be getting the files one at a time over the term of my employment (they are invoices, specifically). I'm trying to make it so that I can just give my physical copies to the accounting person, and stop having to make and keep physical copies of invoices myself. They're pretty much always single-page, and instead of copying them, I want to just scan them, then save them as a .jpg, or be able to save them as a .pdf and do a simple right-click conversion to .jpg. I was hoping for a free program that could do this. I already have PDF Converter, but that just converts to Office or text documents.

    Thanatos on
  • PeregrineFalconPeregrineFalcon Registered User regular
    edited September 2009
    Okay, so you're getting physical one-page files that you need to scan. I thought you were going to be getting .PDFs in an email and needed to .JPG them.

    Given that situation, is there anything stopping you from simply scanning them straight to .JPG/.TIF/.etc? It seems like this should be an option in every scanner's software.

    I'm just wondering where .PDF comes into this.

    PeregrineFalcon on
    Looking for a DX:HR OnLive code for my kid brother.
    Can trade TF2 items or whatever else you're interested in. PM me.
  • StormCrow420StormCrow420 Registered User regular
    edited September 2009
    If you can scan something in you can open it in Paint and save a jpeg.

    StormCrow420 on
  • DaenrisDaenris Registered User regular
    edited September 2009
    Acrobat can save as JPG (not sure if this is Pro only, or if the free version can too). It's not quite right-click convert to JPG, but it's just open PDF, save as JPG. For just one or two documents at a time it's not much different, and it doesn't sound like you'll be doing massive conversions all at once.

    Edit: Alternatively, if you have access to Linux (or maybe Cygwin has converted these tools for Windows use?) there are command line programs pdf2ppm and ppmtojpeg that would accomplish this. Or ImageMagick seems to do it. I'm not sure if that will do a context menu option to convert or not, but with a bit of work you could set up a batch command to convert, and create your own context menu option for PDF files.

    Daenris on
  • ThanatosThanatos Registered User regular
    edited September 2009
    Okay, so you're getting physical one-page files that you need to scan. I thought you were going to be getting .PDFs in an email and needed to .JPG them.

    Given that situation, is there anything stopping you from simply scanning them straight to .JPG/.TIF/.etc? It seems like this should be an option in every scanner's software.

    I'm just wondering where .PDF comes into this.
    My scanner is a copier that does e-mail it to me. I can scan it as .tif, but my experience with those has been... less than ideal. They seem to take forever to open up and look at, and I have the impression that they're substantially larger than .jpgs. Am I incorrect?
    If you can scan something in you can open it in Paint and save a jpeg.
    I think I'd rather just leave it in .pdf. :P
    Daenris wrote: »
    Acrobat can save as JPG (not sure if this is Pro only, or if the free version can too). It's not quite right-click convert to JPG, but it's just open PDF, save as JPG. For just one or two documents at a time it's not much different, and it doesn't sound like you'll be doing massive conversions all at once.

    Edit: Alternatively, if you have access to Linux (or maybe Cygwin has converted these tools for Windows use?) there are command line programs pdf2ppm and ppmtojpeg that would accomplish this. Or a search of pdf2jpeg results in a windows program to do the conversion, or ImageMagick seems to do it. I'm not sure if either of those two will do a context menu option to convert or not.
    Acrobat does not seem to do it (I have the latest Reader, and Standard 6.0; neither will do it). I do not have access to Linux, and even if I did, it wouldn't be worth the trouble to have it just for doing this a couple of times a day.

    And I was hoping someone could suggest an actual program that they've used and know is good, rather than me just going with the first thing I see on Google.

    Thanatos on
  • DaenrisDaenris Registered User regular
    edited September 2009
    I guess the Acrobat must be a new addition. I've used it in at least 8 and 9 I believe.
    Thanatos wrote: »

    And I was hoping someone could suggest an actual program that they've used and know is good, rather than me just going with the first thing I see on Google.


    Yeah... I removed the first one I had linked to after taking another quick look at it. Buy ImageMagick is great and can do conversions between many different types of images. With the command line script it would likely be something like

    convert myfile.pdf myfile.jpg

    With a bit of work it could be put into a batch file and added to the right click menu for PDF files.

    Edit: Hmm... this page says it's excerpted from a book about Acrobat 6 and shows a Save As JPG option (unless of course it's only available in 6 Pro version... bah... stupid different versions). You're sure it's not there in yours, because given that you already have Acrobat, that would likely be the easiest solution.

    Daenris on
  • PeregrineFalconPeregrineFalcon Registered User regular
    edited September 2009
    Thanatos wrote: »
    My scanner is a copier that does e-mail it to me. I can scan it as .tif, but my experience with those has been... less than ideal. They seem to take forever to open up and look at, and I have the impression that they're substantially larger than .jpgs. Am I incorrect?

    No, you're right, but the reason it's so big is that it's trying to give you a high-resolution image. You'll likely have a way, way easier time batch-converting TIFF into JPG than PDF-to-JPG. Just watch out for compression artifacts, since you're dealing with financial statements and small text most likely.

    I haven't actually done that myself, so YMMV on the results. Best I can suggest is to Google for a general image convertor and pick one that points to SourceForge. It's the most likely to be command-line/script friendly, and of course free both in cost and from teh spywarez.

    PeregrineFalcon on
    Looking for a DX:HR OnLive code for my kid brother.
    Can trade TF2 items or whatever else you're interested in. PM me.
  • TofystedethTofystedeth Registered User regular
    edited September 2009
    GSview can do conversion. I use that here for converting from pdf to tiff.

    As far as I know you have to open the file to do it, but once you do you just hit 'f' to open the convert menu. It remembers your last settings, and you can choose a custom resolution, so if you're doing the same thing every time it might work.

    Alternatively you could set up some kind of Ghostscript batch file that you run every time you get one of those files? Does essentially the same as the above program since GSView uses GhostScript.

    Tofystedeth on
    steam_sig.png
  • NebulousQNebulousQ Registered User regular
    edited September 2009
    Bam.

    Virtual Image Printer driver. You should be able to easily batch up the entire directory of PDF files, set your default printer to that, and you're off.

    I have never used this exact program before, but you can use this (or a similar program) to set up a "right click to jpg". It will just be a few more clicks than just right click and click appropriate context menu choice.

    If the linked program works how the image printer on my work computer works, you can just download it. Install it and set it as your default. Then right click on the image you want to print, click print, then choose filename, filetype and location, and hit print/save. Then close adobe and you are done.

    NebulousQ on
  • TofystedethTofystedeth Registered User regular
    edited September 2009
    You any good with batch files? I couldn't find an (easy) way to get Ghostscript to process all files in the directory, but you should be able to write a batch script that invokes Ghostscript on all .pdf files in the directory with the following command line

    gswin32c -sDEVICE=jpeg -o <in.pdf> <out.jpg>

    where the stuff in angle brackets are your input and output file names. The batch script would pass those in to GhostScript as variables. I'm not super hip to batch script syntax, but you can create a For loop construct which should be able to iterate over any pdf files in the folder, and make a jpg (tiff if you change the -sDEVICE argument to one of the tiff output types) and then remove the old pdf files.

    From then its just a matter of dropping any stuff you want converted, clicking on the script and scooping up your output.

    Using GSView would probably be easier though if you're doing them piecemeal. If it is sent to you via email, just right click on it to open it in GSview instead of Adobe, then mash 'f', then hit enter (for any time after the first. On the first you'd need to select jpeg as the output type, and set the resoltion) then it'll just ask you where to save it. Which again, should be whatever the last folder it saved to is. It's pretty good about remembering these things.

    Tofystedeth on
    steam_sig.png
  • StormCrow420StormCrow420 Registered User regular
    edited September 2009
    Fine. Crap all over my Paint suggestion.

    Are you sure I can't just tell you where to obtain the latest Photoshop and Illustrator? Totally legit, in no way unethical and by that I mean 100% illegal.

    StormCrow420 on
  • FeralFeral MEMETICHARIZARD interior crocodile alligator ⇔ ǝɹʇɐǝɥʇ ǝᴉʌoɯ ʇǝloɹʌǝɥɔ ɐ ǝʌᴉɹp ᴉRegistered User regular
    edited September 2009
    Thanatos wrote: »
    Okay, so you're getting physical one-page files that you need to scan. I thought you were going to be getting .PDFs in an email and needed to .JPG them.

    Given that situation, is there anything stopping you from simply scanning them straight to .JPG/.TIF/.etc? It seems like this should be an option in every scanner's software.

    I'm just wondering where .PDF comes into this.
    My scanner is a copier that does e-mail it to me. I can scan it as .tif, but my experience with those has been... less than ideal. They seem to take forever to open up and look at, and I have the impression that they're substantially larger than .jpgs. Am I incorrect?

    That is correct, TIFs are uncompressed.

    That said, it is going to be MUCH easier to find a free tool to convert TIF-JPG than PDF-JPG.

    Feral on
    every person who doesn't like an acquired taste always seems to think everyone who likes it is faking it. it should be an official fallacy.

    the "no true scotch man" fallacy.
  • NoquarNoquar Registered User regular
    edited September 2009
    I am going to solve your problems right here. You can lock it after this. Both apps are free.

    Go to -> www.irfanview.com and download the latest version plus the plugin pack.

    Then go to -> http://sourceforge.net/projects/ghostscript/ - download and install it.

    Now all you do is open your PDF in Irfanview and do a Save As to whatever your heart desires. IrfanView also has the capability to do batch converting/naming/yomamma and lets you adjust just about anything you want.

    Noquar on
  • rfaliasrfalias Registered User regular
    edited September 2009
    rfalias on
  • ThanatosThanatos Registered User regular
    edited September 2009
    You any good with batch files? I couldn't find an (easy) way to get Ghostscript to process all files in the directory, but you should be able to write a batch script that invokes Ghostscript on all .pdf files in the directory with the following command line

    gswin32c -sDEVICE=jpeg -o <in.pdf> <out.jpg>

    where the stuff in angle brackets are your input and output file names. The batch script would pass those in to GhostScript as variables. I'm not super hip to batch script syntax, but you can create a For loop construct which should be able to iterate over any pdf files in the folder, and make a jpg (tiff if you change the -sDEVICE argument to one of the tiff output types) and then remove the old pdf files.

    From then its just a matter of dropping any stuff you want converted, clicking on the script and scooping up your output.

    Using GSView would probably be easier though if you're doing them piecemeal. If it is sent to you via email, just right click on it to open it in GSview instead of Adobe, then mash 'f', then hit enter (for any time after the first. On the first you'd need to select jpeg as the output type, and set the resoltion) then it'll just ask you where to save it. Which again, should be whatever the last folder it saved to is. It's pretty good about remembering these things.
    A solution that doesn't involve me having to learn to program would be good. :P
    Noquar wrote: »
    I am going to solve your problems right here. You can lock it after this. Both apps are free.

    Go to -> www.irfanview.com and download the latest version plus the plugin pack.

    Then go to -> http://sourceforge.net/projects/ghostscript/ - download and install it.

    Now all you do is open your PDF in Irfanview and do a Save As to whatever your heart desires. IrfanView also has the capability to do batch converting/naming/yomamma and lets you adjust just about anything you want.
    This seems to work okay.

    I wouldn't say it's a done deal solution, as it's not ideal, but certainly good enough.

    Any easy way to get .html files to print to .jpg?

    Thanatos on
  • NoquarNoquar Registered User regular
    edited September 2009
    Thanatos wrote: »
    You any good with batch files? I couldn't find an (easy) way to get Ghostscript to process all files in the directory, but you should be able to write a batch script that invokes Ghostscript on all .pdf files in the directory with the following command line

    gswin32c -sDEVICE=jpeg -o <in.pdf> <out.jpg>

    where the stuff in angle brackets are your input and output file names. The batch script would pass those in to GhostScript as variables. I'm not super hip to batch script syntax, but you can create a For loop construct which should be able to iterate over any pdf files in the folder, and make a jpg (tiff if you change the -sDEVICE argument to one of the tiff output types) and then remove the old pdf files.

    From then its just a matter of dropping any stuff you want converted, clicking on the script and scooping up your output.

    Using GSView would probably be easier though if you're doing them piecemeal. If it is sent to you via email, just right click on it to open it in GSview instead of Adobe, then mash 'f', then hit enter (for any time after the first. On the first you'd need to select jpeg as the output type, and set the resoltion) then it'll just ask you where to save it. Which again, should be whatever the last folder it saved to is. It's pretty good about remembering these things.
    A solution that doesn't involve me having to learn to program would be good. :P
    Noquar wrote: »
    I am going to solve your problems right here. You can lock it after this. Both apps are free.

    Go to -> www.irfanview.com and download the latest version plus the plugin pack.

    Then go to -> http://sourceforge.net/projects/ghostscript/ - download and install it.

    Now all you do is open your PDF in Irfanview and do a Save As to whatever your heart desires. IrfanView also has the capability to do batch converting/naming/yomamma and lets you adjust just about anything you want.
    This seems to work okay.

    I wouldn't say it's a done deal solution, as it's not ideal, but certainly good enough.

    Any easy way to get .html files to print to .jpg?

    I am not sure about the .html file to be honest.


    I am not sure you are easily going to find an ideal right click solution. I think it may be out there, but it may not.

    From the description of the situation you gave, you are only receiving one at a time. If you are not editing the documents with Acrobat or something else, then you could easily just associate the .pdf extension with IrfanView. Double-click and off you go.

    Noquar on
  • ThanatosThanatos Registered User regular
    edited September 2009
    rfalias wrote: »
    Downloading GIMP to convert .pdfs to .jpgs seems like overkill.

    I think I'd rather use Paint. I'm not even sure that this computer will run GIMP.

    Thanatos on
  • ThanatosThanatos Registered User regular
    edited September 2009
    Noquar wrote: »
    I am not sure about the .html file to be honest.

    I am not sure you are easily going to find an ideal right click solution. I think it may be out there, but it may not.

    From the description of the situation you gave, you are only receiving one at a time. If you are not editing the documents with Acrobat or something else, then you could easily just associate the .pdf extension with IrfanView. Double-click and off you go.
    This is a very small part of my job. Much of the rest of it deals with .pdfs, and I wouldn't want to have the rest of them opening in IrfanView.

    I'm doing what I can to turn my little corner of the office paperless, so I don't have quite as much fucking stuff lying around.

    Thanatos on
  • NoquarNoquar Registered User regular
    edited September 2009
    Thanatos wrote: »
    Noquar wrote: »
    I am not sure about the .html file to be honest.

    I am not sure you are easily going to find an ideal right click solution. I think it may be out there, but it may not.

    From the description of the situation you gave, you are only receiving one at a time. If you are not editing the documents with Acrobat or something else, then you could easily just associate the .pdf extension with IrfanView. Double-click and off you go.
    This is a very small part of my job. Much of the rest of it deals with .pdfs, and I wouldn't want to have the rest of them opening in IrfanView.

    I'm doing what I can to turn my little corner of the office paperless, so I don't have quite as much fucking stuff lying around.

    Yeah, you wouldn't want to associate that extension if that is the case. I use the irfanview/ghostscript solution myself. A newer version of Acrobat may have the functionality built in, but as you know that costs $$.

    Noquar on
  • rfaliasrfalias Registered User regular
    edited September 2009
    I only listed GIMP because of it's command line awesomness.
    You could basically write a batch to process a directory...
    It requires some basic syntax and some light scripting elements.

    http://www.gimp.org/tutorials/Basic_Batch/

    rfalias on
  • ascannerlightlyascannerlightly Registered User regular
    edited September 2009
    Thanatos wrote: »
    .jpg or .jpeg?
    ...... there's a difference? i thought it was like with .htm versus .html

    ascannerlightly on
    armedroberty.jpg
  • DVGDVG No. 1 Honor Student Nether Institute, Evil AcademyRegistered User regular
    edited September 2009
    To offer the crazy low-tech solution:

    Open PDF: Press Alt+Print Screen
    Open Paint
    Paste
    Crop as necessary.
    Save in format of choice.

    DVG on
    Diablo 3 - DVG#1857
  • ThanatosThanatos Registered User regular
    edited September 2009
    DVG wrote: »
    To offer the crazy low-tech solution:

    Open PDF: Press Alt+Print Screen
    Open Paint
    Paste
    Crop as necessary.
    Save in format of choice.
    There is no way in hell I'm going to crop a goddamn screenshot in Paint every time I want to do this. The Irfanview thing is roughly a thousand times faster.

    Thanatos on
  • ueanuean Registered User regular
    edited September 2009
    mariajones wrote: »
    Hi
    There are many software available for convert this formate. You will search on the different search engine for correct keyword. I think you can get it this software. some software is free ware. So try this...ok

    Thank you sharing this info..

    /thread. This has all the info you need.

    uean on
    Guys? Hay guys?
    PSN - sumowot
  • SzechuanosaurusSzechuanosaurus Registered User, ClubPA regular
    edited September 2009
    Thanatos wrote: »
    Is there a free program I can download that will allow me to do a right-click conversion from .pdf to .jpg or .jpeg?

    I have a lot of single-page documents that I want to convert to .jpg for two reasons:

    1. .jpg is way smaller than .pdf.

    2. Windows does that thing where it will automatically let you page through .jpgs in a folder with a single click in the image viewer.

    Any suggestions?

    1. This isn't automatically true. It depends on the content. Even if it's 100% bitmap data, PDF can use Jpeg compression instead of ZIP anyway. Sure, you get the PDF junk as well, but depending on what you use to create the Jpeg you get a lot of junk with that format as well so it can end up all much of a muchness unless you are using high-end software that can properly optimise your files.

    2. Is there seriously no PDF viewer that will give you similar functionality?

    I feel like this problem is being approached backwards. I don't have a whole lot of love for PDF but in this situation, I think you're making things more difficult than they need to be by insisting on a file format that really isn't ideally suited to the type of files you're working with to begin with. Instead of 'Help me find a free program that will easily let me convert PDF to Jpeg' maybe a more effective solution could be found with the question 'Help me find a free PDF viewer that will let me easily browse a folder full of PDFs'?

    If nothing else, such a program should it exist would save you countless hours a year of unnecessary batch file converting.

    Szechuanosaurus on
  • NijaNija Registered User regular
    edited September 2009
    http://www.print-driver.com/overview/

    Single user license is $65. We use it at work frequently.

    Although the Irfanview solution is probably the easiest. I don't believe I've ever seen the functionality that you are requesting (right-click, convert to jpg).

    Nija on
    Priest lvl 110 Warlock lvl 9x DK lvl 110 Paladin lvl 9x Rogue lvl 8x

    Steam Me
  • TofystedethTofystedeth Registered User regular
    edited September 2009
    Feral wrote: »
    Thanatos wrote: »
    Okay, so you're getting physical one-page files that you need to scan. I thought you were going to be getting .PDFs in an email and needed to .JPG them.

    Given that situation, is there anything stopping you from simply scanning them straight to .JPG/.TIF/.etc? It seems like this should be an option in every scanner's software.

    I'm just wondering where .PDF comes into this.
    My scanner is a copier that does e-mail it to me. I can scan it as .tif, but my experience with those has been... less than ideal. They seem to take forever to open up and look at, and I have the impression that they're substantially larger than .jpgs. Am I incorrect?

    That is correct, TIFs are uncompressed.

    That said, it is going to be MUCH easier to find a free tool to convert TIF-JPG than PDF-JPG.

    TIFs can have all kinds of compression. His scanner may send them uncompressed, but it may be possible to set it to use Group4 compression or something. We use TIFFG4 here for our parts order software for the schematic images, and even the most complicated line drawings top out at about 70kB

    Tofystedeth on
    steam_sig.png
  • RamiusRamius Joined: July 19, 2000 Administrator, ClubPA admin
    edited September 2009
    One-page PDF's should compress just as well as JPG in most cases. The reason you feel your PDF and TIF files are overly large/slow is because your copier/scanner is misconfigured to scan at too high of a DPI. If it scanned at about 150 DPI you should have perfectly usable TIF or PDF files.

    If you cannot adjust the DPI and you want a very automated way of converting a directory of PDFs into a directory of JPGs, the ImageMagick that someone in the thread mentioned is available for Windows, and the convert.exe portion of that can make JPG out of PDF. There would need to be a bit of Batch File writing and perhaps setting a scheduled task in Windows if you wanted to make it automatic, though. Here is the commandline you would probably want to use:
    convert -density 150 "$FILENAME.pdf[0]" $FILENAME.jpg

    Ramius on
    1zxt8dhasaon.png
  • ThanatosThanatos Registered User regular
    edited September 2009
    Ramius wrote: »
    One-page PDF's should compress just as well as JPG in most cases. The reason you feel your PDF and TIF files are overly large/slow is because your copier/scanner is misconfigured to scan at too high of a DPI. If it scanned at about 150 DPI you should have perfectly usable TIF or PDF files.

    If you cannot adjust the DPI and you want a very automated way of converting a directory of PDFs into a directory of JPGs, the ImageMagick that someone in the thread mentioned is available for Windows, and the convert.exe portion of that can make JPG out of PDF. There would need to be a bit of Batch File writing and perhaps setting a scheduled task in Windows if you wanted to make it automatic, though. Here is the commandline you would probably want to use:
    convert -density 150 "$FILENAME.pdf[0]" $FILENAME.jpg
    I'm not hugely concerned about picture quality, and .jpgs have the added advantage of being able to browse through a folder of them using Windows Image Viewer without having to open up a million different files (since you can click back and forth between them). I even gave a try to printing one I'd converted earlier, and it's perfectly legible.

    As for that batch file, where would I stick it? Scheduled tasks? That would be really nice.

    Thanatos on
  • RamiusRamius Joined: July 19, 2000 Administrator, ClubPA admin
    edited September 2009
    well first, you'll need to experiment (or RTFM) to see if you can call convert with wildcards. If you can do something like convert -density 150 "C:\PDF_Directory\*.pdf[0]" "C:\JPG_Directory\*.jpg" then you can just make your batch file be that line, plus a line to DEL "C:\PDF_Directory\*.pdf" (assuming you don't want to keep the original PDFs around).

    If you need to provide filenames to convert (no wildcard support), then you will need your batch file to have a For loop. See c:\windows\help\ntcmds.chm for syntax on batch file commands.

    Once you have a batch file that works, you could stick it on your desktop and click as needed, or you could stick it in a folder somewhere and create a scheduled task to call it. See C:\windows\help\mstask.chm for more info on Scheduled Tasks.

    Ramius on
    1zxt8dhasaon.png
  • ueanuean Registered User regular
    edited September 2009
    Thanatos wrote: »
    Ramius wrote: »
    One-page PDF's should compress just as well as JPG in most cases. The reason you feel your PDF and TIF files are overly large/slow is because your copier/scanner is misconfigured to scan at too high of a DPI. If it scanned at about 150 DPI you should have perfectly usable TIF or PDF files.

    If you cannot adjust the DPI and you want a very automated way of converting a directory of PDFs into a directory of JPGs, the ImageMagick that someone in the thread mentioned is available for Windows, and the convert.exe portion of that can make JPG out of PDF. There would need to be a bit of Batch File writing and perhaps setting a scheduled task in Windows if you wanted to make it automatic, though. Here is the commandline you would probably want to use:
    convert -density 150 "$FILENAME.pdf[0]" $FILENAME.jpg
    I'm not hugely concerned about picture quality, and .jpgs have the added advantage of being able to browse through a folder of them using Windows Image Viewer without having to open up a million different files (since you can click back and forth between them). I even gave a try to printing one I'd converted earlier, and it's perfectly legible.

    As for that batch file, where would I stick it? Scheduled tasks? That would be really nice.

    Yup. Scheduled Tasks.You're going to have to get creative with that batch file though in order to not continue duplicating the same pdfs over and over into jpgs. You'll probably need to start it hunting through folders labelled by date, then have it retrieve and open a folder based on the system date and run convert on all the images within that folder. That would still require you to create folders for every day and throw the pdfs inside. Yuck. More work than before.

    Maybe you could create a seperate process to rename all files to FILENAME-CONVERTED.PDF once they've been completed, then exclude any filenames contained -CONVERTED?

    uean on
    Guys? Hay guys?
    PSN - sumowot
  • RamiusRamius Joined: July 19, 2000 Administrator, ClubPA admin
    edited September 2009
    Again, all of the above is assuming you really do want to convert these images to Jpg. You should be able to scan direct to TIF, and use any number of applications to view your folder of TIF files as easily or better than you can view them in the Windows Picture and Fax viewer. Your real problem is that you are scanning at way too high of a resolution resulting in huge and slow files.

    If you can adjust the DPI on the scanner/copier, then you just need something that lets you browse a folder of TIF files. There should be countless applications suited to this purpose. I've used ACDSee 2.43 for YEARS. It would be perfect for your use-case, but I never tried the new versions which I'm sure are overladen with bells and whistles not pertaining to being a super fast image viewer that understands practically all file formats.

    Ramius on
    1zxt8dhasaon.png
  • Marty81Marty81 Registered User regular
    edited September 2009
    Ramius wrote: »
    well first, you'll need to experiment (or RTFM) to see if you can call convert with wildcards. If you can do something like convert -density 150 "C:\PDF_Directory\*.pdf[0]" "C:\JPG_Directory\*.jpg" then you can just make your batch file be that line, plus a line to DEL "C:\PDF_Directory\*.pdf" (assuming you don't want to keep the original PDFs around).

    If you need to provide filenames to convert (no wildcard support), then you will need your batch file to have a For loop. See c:\windows\help\ntcmds.chm for syntax on batch file commands.

    Once you have a batch file that works, you could stick it on your desktop and click as needed, or you could stick it in a folder somewhere and create a scheduled task to call it. See C:\windows\help\mstask.chm for more info on Scheduled Tasks.

    I'm mildly retarded when it comes to batch files, so instead of trying to get the iteration/wildcards working inside the batch file what I'd do is write a simple python script that creates a batch file to run - the python script would scan the directory and write a convert command to the batch file for each pdf it finds, and then call the resulting batch file. It'd then remove the batch file when it's done. Just a thought if you know some python.

    Marty81 on
  • RamiusRamius Joined: July 19, 2000 Administrator, ClubPA admin
    edited September 2009
    That seems terribly convoluted. Python should be able to make shell calls (after all how else would you execute the batch file), and therefore, if you are doing it in Python you have no need for the batch file intermediary. Just make your calls directly to convert as needed.

    I would assume that he does not have Python, however. In the Windows world, it is rare to find people who have a scripting runtime installed. And if he wanted a scripting runtime, but is not a programmer by trade, then I would point him toward AutoIT.

    Ramius on
    1zxt8dhasaon.png
  • Marty81Marty81 Registered User regular
    edited September 2009
    Ramius wrote: »
    That seems terribly convoluted. Python should be able to make shell calls (after all how else would you execute the batch file), and therefore, if you are doing it in Python you have no need for the batch file intermediary. Just make your calls directly to convert as needed.

    You're right. Python can do shell calls, so that would work. I guess the point of the batch file intermediary would be to prevent a bunch of command windows popping up (one for each convert call) - it would only pop one up, and it would close when it's done.

    AutoIT looks pretty cool. I will have to remember that.

    Ok. </tangent>.

    Marty81 on
  • bobmyknobbobmyknob 3DS Friend Code 4553-9974-2186 Registered User regular
    edited September 2009
    If I was keeping a bunch of invoices and I wanted to keep them as image files and not as PDFs, I'd save them as PNGs. It's a lot higher quality and they are a lot smaller than PDFs. But I don't know what programs to use as I just use the Creative Suite to deal with all of it.

    bobmyknob on
    steam_sig.png
  • rfaliasrfalias Registered User regular
    edited September 2009
    VBScript anyone? Native to windows!

    rfalias on
Sign In or Register to comment.