?
Solved

PDF file conversion from the command line or excel macro

Posted on 2014-03-03
4
Medium Priority
?
1,119 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

762 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