Solved

PDF file conversion from the command line or excel macro

Posted on 2014-03-03
4
1,040 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
  • 2
  • 2
4 Comments
 
LVL 32

Accepted Solution

by:
Robberbaron (robr) earned 500 total points
Comment Utility
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)
Comment Utility
http://www.pdfill.com/pdf_tools_free.html may be one of the better ?
0
 

Author Comment

by:cyber-33
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now