Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PDF file conversion from the command line or excel macro

Posted on 2014-03-03
4
Medium Priority
?
1,162 Views
Last Modified: 2014-03-04
I have a folder with thousands of jpg files. I would like to use an excel spreadsheet that identifies subsets of the files to be converted into pdf files. For example, my folder looks like this:

C:\images
     image1.jpg
     image2.jpg
     image3.jpg
     image4.jpg
     image5.jpg
     image6.jpg
     image7.jpg
     image8.jpg

I have an excel table that lists first and last pages of each pdf file that should be created:
Files.xls

First, Last
      1,2
      3,6
      7,8

Based in this table, the excel macro should create 3 pdf files with titles identifying the first and last page of the subset:

File1-2.pdf
File3-6.pdf
File7-8.pdf

Thank you for your help, experts!
0
Comment
Question by:cyber-33
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 32

Accepted Solution

by:
Robberbaron (robr) earned 2000 total points
ID: 39902873
how do you get jpeg 'converted' to pdf now ?

pdf is a piece of paper that you add picture to.

do you want each picture to be a page in the PDF, or multiple pictures per page ?



I know you want to use excel for the ease of setting up the data, but i suspect you will need to convert all the JPG to individual PDF file using some app. they are about but not sure how much adware comes with them....

the use PDFtk command line to merge the desired pages together.

You could use excel vba to create a batchfile with the desired pdftk switches.  If you convert the JPEG to individual pdf, i can assist with the PDFtk batch creation from excel.
0
 
LVL 32

Expert Comment

by:Robberbaron (robr)
ID: 39902948
http://www.pdfill.com/pdf_tools_free.html may be one of the better ?
0
 

Author Comment

by:cyber-33
ID: 39903174
I found total pdf converter that can  do the job from the command line. It can work with lists of pages specified in text files. Now all that I need to do is to generate the text files with page paths and invoke the pdf converter for each text file. See question ID28379301.


 See question
0
 

Author Comment

by:cyber-33
ID: 39904430
For the benefit of the community:

I ended up using Total Image Converter - well worth the $20 it costs. This tool works out well because it has a flexible command line interface:

http://www.coolutils.com/totalimageconverter

Works like a charm.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question