Solved

PDF file conversion from the command line or excel macro

Posted on 2014-03-03
4
1,104 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 500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

PDF files have been in the limelight due to its unmatched features.  Personal documents, emails, business reports and eBooks are all converted into PDF files owing to peerless features provided by it. Adding watermark to a PDF file is a method to se…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

724 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