Solved

PDF file conversion from the command line or excel macro

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

730 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