Automation for converting short innd files to pdf

I have a lot of very short indd files that need to be Exported to pdf. Does anyone know of a script that will do a batch conversion to eliminate the process of doing it manually? I have the indd files with the same name as the resultant pdfs. The pdfs will be stored in a FileMaker database that will contain a few thousand files.
Thanks,

This is an old post and I'm sure your project is long past. For any future projects of a similar nature, use the "Batch-Converter" script found at the link below.
http://www.kahrel.plus.com/indesign/batch_convert.html
This is the thread I found it on: Scripts you find useful

Similar Messages

  • Setting Font for converting multiple text files into PDF using VB 6.0

    Dear All,
    Am converting multiple text files into PDF using VB6.0. Currently, am unable to control the font face and size for the generated files. Below is the procedure am using for each file;
    Public Sub proc_convert_to_PDF(srcFilename As String, destFilename As String)
    Dim p_AcroApp As CAcroApp
    Dim p_VDoc As CAcroAVDoc
    Dim p_DDoc As CAcroPDDoc
    Dim IsOk As Boolean
    Set p_AcroApp = CreateObject("AcroExch.App")
    Set p_VDoc = CreateObject("AcroExch.AVDoc")
    Call p_VDoc.Open(srcFilename, "")
    Set p_VDoc = p_AcroApp.GetActiveDoc
    If p_VDoc.IsValid Then
    Set p_DDoc = p_VDoc.GetPDDoc
    ' Fill in pdf properties.
    p_DDoc.SetInfo "Title", Format(Date, "dd-mm-yyy")
    p_DDoc.SetInfo "Subject", srcFilename
    If p_DDoc.Save(1 Or 4 Or 32, destFilename) <> True Then
    MsgBox "Failed to save " & srcFilename
    End If
    p_DDoc.Close
    End If
    'Close the PDF
    p_VDoc.Close True
    p_AcroApp.Exit
    'Clear Variables
    Set p_DDoc = Nothing
    Set p_VDoc = Nothing
    Set p_AcroApp = Nothing
    End Sub
    What I need;
    1) to be able to set the font face of the destination file ( destFilename)
    2) to be able to set the font size of the destination file ( destFilename)
    Am using Adobe Acrobat 7.0 Type Library
    Kindly Help.
    Thanks in advance

    We didn't say it doesn't work. We said it isn't supported.
    There are a number of other ways to make a PDF. The one which would
    give the most control is if your application directly printed to GDI,
    controlling the font directly. This could print to Adobe PDF.
    You could look for an application that gives control of font for
    printing.
    You could use a text-to-PostScript system and distill the result. You
    could even look for a non-Adobe text-to-PDF.
    Working in the unsupported and dangerous world you chose, the font
    size for text conversion is set (and this is very bad design from
    Adobe) in the settings for Create PDF > From Web Page. There is no API
    to this.
    Aandi Inston

  • Automator: Cannot convert multiple .doc files to PDF

    Hi everyone!
    I can't get my automator to print PDF files correctly. Once I have run the workflow I try to open the files and they are "messed up" preview and adobe both tell me that the "File cannot be opened. It may be damaged or use a file format that Preview doesn’t recognize."
    When I go to Automator I see an error message - (1728) The object you are trying to access does not exist. However, if I manually create the PDF from Word or Pages, I have no problem.
    I really appreciate the help, I need this to grade student papers and I have 200 students. Figuring this out would really make my life better.
    Thank you for your time!
    Diana

    Here's the screenshot.
    I tried using several different files and it seems not to be the problem.
    /Users/arqanaid/Desktop/Screen shot 2011-03-04 at 2.32.46 PM.png
    Thank you all for being so helpful!

  • I used to use the free version of Adobe Reader to convert my publisher files to pdf files. When I was making a booklet for our hockey team, it said I had to buy it. Now I bought it and it won't convert the files. I am ready to throw this computer out the

    I used to use the free version of Adobe Reader to convert my publisher files to pdf files. When I was making a booklet for our hockey team, it said I had to buy it. Now I bought it and it won't convert the files. I am ready to throw this computer out the window!! Can you tell me what is the problem? No it does not exceed 100 M. either.

    Adobe Reader never converted Publisher files to PDF, for free, never. I suspect you use to have the (paid for) Adobe Acrobat. Sometimes people have Acrobat (more than $300 worth) and install Adobe Reader over the top, losing that valuable software.
    That said, if you subscribed to PDF Pack it should do this conversion. What exactly happens now.

  • I have adobe acrobat pro for windows and it is freezing up when I try to convert a word file to pdf... I have tried to get this done six ways from Sunday but it is just not working... help!  Chris.

    I have adobe acrobat pro for windows and it is freezing up when I try to convert a word file to pdf... I have tried to get this done six ways from Sunday but it is just not working... help!  Chris.

    It would be helpful to know what version of Acrobat, WORD, and operating system.
    Without that info, I would suggest at this point to open your WORD file and then go to the print menu and print to file using the Adobe PDF printer. Open the created file in Distiller and see if you get a PDF. If so, check to see if AcroTray is running in the background.
    You say you tried many ways. It would help to know what you tried and what worked or did not work, and at what point the failure occurs.

  • Converting many numbers files to PDFs?

    Hi everyone!
    I would like to convert many Numbers files to PDF documents. Every Numbers document should be a new PDF with the same name!
    I even tried to write a workflow file with Automator, but I dont get the "create a PDF"-part running.
    Furthermore I googled for 2 hours, but all scripts I found do not work with the latest Numbers version...
    Please help me... Maybe one of you have a Apple Script or a solution using Automator?
    OS X 10.9.3
    Numbers Version 3.2 (1861)

    Dear Lori,
    promptUser =false, see below.
    Does not work.
    All programs that might disturbe PDF output removed from computer.
    Does not work.
    I am now investing some evenings into Word-VBA, making a script loop through the subdirectories over several levels (does Acrobat do that anyway?)...
    Does not work.
    Not yet.
    It will have to...
    best regards,
    Boris
    <?xml version="1.0" encoding="UTF-8"?>
    <Workflow xmlns="http://ns.adobe.com/acrobat/workflow/2012" title="ZOPtest ORT" description="" majorVersion="1" minorVersion="0">
    <Sources defaultCommand="WorkflowPlaybackSelectFolder">
      <Folder path="/nas02/quinsee$/Fachabteilung/ZOP/Standards/Standards NCH"/>
    </Sources>
    <Group label="Unbenannt">
      <Command name="Scan:OPT" pauseBefore="false" promptUser="false">
       <Items>
        <Item name="ApplyMRC" type="boolean" value="false"/>
        <Item name="BkgrRemove" type="integer" value="0"/>
        <Item name="ColorCompression" type="integer" value="4"/>
        <Item name="Descreen" type="boolean" value="false"/>
        <Item name="Deskew" type="boolean" value="false"/>
        <Item name="Format" type="integer" value="1"/>
        <Item name="Language" type="integer" value="-1"/>
        <Item name="MonoCompression" type="integer" value="1"/>
        <Item name="QualityLevel" type="integer" value="1"/>
        <Item name="TextSharpen" type="integer" value="0"/>
        <Item name="doOCR" type="boolean" value="false"/>
       </Items>
      </Command>
    </Group>
    </Workflow>

  • In converting a .docx file to .pdf the the Word functionality of linking screen tips to hyperlinks is lost. Why?  How can screen tips be saved in pdf if at all?

    In converting a .docx file to .pdf the the Word functionality of linking screen tips to hyperlinks is lost. Why?  How can screen tips be saved in pdf if at all?

    Thanks for replying. I am converting from MS Office Word document to Adobe Acrobat Document and opening with Reader XI - sorry my mistake.
    I now notice another problem. On trying to open a specific hyperlink in the pdf version I get the message  'Acrobat does not allow connection to: www.biblegateway.com'.  Why would there be a restriction? 

  • To convert multiple image files to pdf using pdfsharp in C#

    Hey guys I have this C# code to convert any image file to .pdf using pdfsharp.dll. But I want to select multiple images for conversion please help. here's my code (plz note enable pdfsharp.dll in the reference)
    usingSystem;
    usingSystem.Collections.Generic;
    usingSystem.Linq;
    usingSystem.Text;
    usingSystem.Threading.Tasks;
    usingPdfSharp.Pdf;
    usingPdfSharp.Drawing;
    usingSystem.IO;
    namespaceConsoleApplication1
    classProgram
    staticvoidMain(string[]
    args)
    PdfDocumentdoc =
    newPdfDocument();
    doc.Pages.Add(newPdfPage());
    XGraphicsxgr =
    XGraphics.FromPdfPage(doc.Pages[0]);
    XImageimg =
    XImage.FromFile(source
    path...);
    xgr.DrawImage(img,0,0);
    doc.Save(destination path...);
    doc.Close();

    try this one
    public string CreatePDF(System.Collections.Generic.List<byte[]> images)
    dynamic PDFGeneratePath = Server.MapPath("../images/pdfimages/");
    dynamic FileName = "attachmentpdf-" + DateTime.Now.Ticks + ".pdf";
    if (images.Count >= 1) {
    Document document = new Document(PageSize.LETTER);
    try {
    // Create pdfimages directory in images folder.
    if ((!Directory.Exists(PDFGeneratePath))) {
    Directory.CreateDirectory(PDFGeneratePath);
    // we create a writer that listens to the document
    // and directs a PDF-stream to a file
    PdfWriter.GetInstance(document, new FileStream(PDFGeneratePath + FileName, FileMode.Create));
    // opens up the document
    document.Open();
    // Add metadata to the document. This information is visible when viewing the
    // Set images in table
    PdfPTable imageTable = new PdfPTable(2);
    imageTable.DefaultCell.Border = Rectangle.NO_BORDER;
    imageTable.DefaultCell.HorizontalAlignment = Element.ALIGN_CENTER;
    for (int ImageIndex = 0; ImageIndex <= images.Count - 1; ImageIndex++) {
    if ((images(ImageIndex) != null) && (images(ImageIndex).Length > 0)) {
    iTextSharp.text.Image pic = iTextSharp.text.Image.GetInstance(SRS.Utility.Utils.ByteArrayToImage(images(ImageIndex)), System.Drawing.Imaging.ImageFormat.Jpeg);
    // Setting image resolution
    if (pic.Height > pic.Width) {
    float percentage = 0f;
    percentage = 400 / pic.Height;
    pic.ScalePercent(percentage * 100);
    } else {
    float percentage = 0f;
    percentage = 240 / pic.Width;
    pic.ScalePercent(percentage * 100);
    pic.Border = iTextSharp.text.Rectangle.BOX;
    pic.BorderColor = iTextSharp.text.BaseColor.BLACK;
    pic.BorderWidth = 3f;
    imageTable.AddCell(pic);
    if (((ImageIndex + 1) % 6 == 0)) {
    document.Add(imageTable);
    document.NewPage();
    imageTable = new PdfPTable(2);
    imageTable.DefaultCell.Border = Rectangle.NO_BORDER;
    imageTable.DefaultCell.HorizontalAlignment = Element.ALIGN_CENTER;
    if ((ImageIndex == (images.Count - 1))) {
    imageTable.AddCell(string.Empty);
    document.Add(imageTable);
    document.NewPage();
    } catch (Exception ex) {
    throw ex;
    } finally {
    // Close the document object
    // Clean up
    document.Close();
    document = null;
    return PDFGeneratePath + FileName;

  • Distortion of excel charts when converting microsoft publisher file to pdf

    I am using the print "Adobe PDF" function in publisher to convert a publisher file to pdf.  Some exel pie charts that were pasted into the publisher file become distorted at the edges in the pdf file.  I have tried playing with various settings and using the "print quality" settings but nothing has helped.  See the attached files for an example of the excel chart, publisher file, and results I am getting when converting to pdf.
    Thanks all.

    I'm sorry I didn't make it clear.  What I'm trying to say is that the graphic looks just fine in publisher.  But when it is converted to a pdf, the graphic has distorted edges, if you look at the publisher and pdf files I attached I think you might see what I'm talking about. 
    Please let me know if it's still not clear.

  • Converting Word 2007 files to PDF

    Hi,
    When I convert Word 2007 file to PDF via Acrobat Pro. 9, The Section Titles show on the bookmark area are as usual, but the Section number for the titles are disappear. For Example: the title set as "1.1 Test", the bookmark shows only "Test" and the "1.1" is disappeared. (the title assigned as style heading 3 and the section number is generated by multi-level list).
    I have been converting Word 2003 file via Acrobat Pro. 7 and Word 2007 file Via Acrobat 8.1, they are all fine.
    I tried to change settings on PDFmaker for Acorbat Pro 9 and failed. I also checked through the manual and found nothing. Can anyone tell me how to have both the section number and title show on the Bookmark section of PDF file with my present MS Word 2007 setting (the title assigned as style heading 3 and the section number is generated by multi-level list)?
    Thanks,
    Jeffrey

    Steve, Samnol,
    Thanks for your advice and sorry for the late reponse because I tried to re-install Acrobat 8 and 9 and see if anything changed.
    The good news I got from this weekend is that the problem regarding the "Missing of section numbers in the Bookmark when I converted the Word 2007 to PDF" has been resolved after I update the patch published on 01 March 2009.  I will keep running Rev 9 on trail basis and work out the recommendation to the company.  I am glad that I can get rid of the old Office 2003 and Acrobat 7 for the time being.  It has been a heck for me to run dual Office system.
    Thanks again for the advise.
    Jeffrey

  • Error converting Word 07 files to pdf in Vista

    Hi
    I'm running Vista, Word 07, Acrobat 8.1.2. I don't use acrobat a lot in converting files, last time it was a few months ago.
    I wanted to convert a doc file to pdf but always get this error:
    Adobe could not open the the file because it is unsupported etc etc.
    I tried with docx still the same. but other non office files are ok e.g. jpg, txt, html etc. but not office files, ppt/doc/rtf/docx etc.
    When I try to print to pdf in word, word just freezes & is unresponsive, need to close it. At the bottom of word, it says converting page 1 etc. not stuck.
    I don't really know what to do. Have tried uninstalling/reinstalling, checked this forum for solutions but still the same. Even tried upgrading but still no avail!
    Please help.
    Thanks

    I don't have a printer at home. So can't test if I can print through a physical printer.
    it's kinda strange because it just affects ms office docs/ppt etc. others seem just fine apart from notepad as well. but right clicking say on a jpeg/txt file & convert to pdf is fine.

  • Converting a .tiff file to PDF

    I can not seem to convert a .tiff file to PDF, it keeps giving me a error. What can I do? I have Windows 7

    Oh dear!  Unfortunately, it sounds like the problem is specific to the file in question, which means that we wouldn't be able to reproduce the error you've been seeing with another file. Why don't you try creating a comparable .tif file and see if you can upload it? I would be very surprised if you received the same error message, so the goal here would just be to isolate the problem as existing only in the other file. If it's not too much trouble, give it a shot.
    All that being said, if we can't test the file ourselves, it'll be tough to find a workaround for you. Sometimes certain files contain a piece that our servers have trouble with, so we like to be able to examine the files that prove difficult, and often wrestle them into compliance. I'm sorry not to be able to offer more specific instructions, Sharmaine! Let me know how your experimenting goes.
    Best,
    Rebecca

  • Converting PRN (PCL) file to PDF

    I'm helping a friend with something... She asked for an electronic version of some government public records. She received a Windows-generated PRN file (actually, several of them). I opened one up in BBEdit, and it's PCL, not PS (the Language line is PCLXL). There is no option to get the file in any other format (the provider is unwilling to be of any help). The document is hundreds of pages long, and she'd like it in PDF format. (Ideally she'd like it in a comma/tab-delimited format, but I suspect that's out of the question.)
    I believe it's possible to just dump a PCL-PRN file to a PCL printer using lp or lpr, and there are similar utilities on Windows (I have Windows XP in Parallels). But I haven't found a way to push the thing into a PDF file.
    Any suggestions?
    Thanks!

    Posting the solution for anyone happening to find this in a search.
    GhostPCL:
    http://www.ghostscript.com/GhostPCL.html
    did the trick. It's a Unix command-line application. It needs to be compiled, but the process was simple following four lines of instructions.
    The command to convert the .prn file to .pdf:
    pcl6 -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile=outfile.pdf INFILE.PRN
    (replacing INFILE.PRN with the source file, and outfile.pdf to the name of the file to create.)
    The PDF created is pure graphics (mostly vectors); fonts are drawn as vectors but aren't fonts, so can't be selected as text. Thus the files are quite huge. But they're PDFs and otherwise quite usable.
    Enjoy!

  • Converting Contributor Data File to PDF

    Hi,
    I have a requirement where end users should be able to download the content from a website(created using sitestudio) as PDF. I have configured the IBR,created Provider in Content server,I am able to convert xml to PDF. But it is showing raw content in pdf. How can I convert Contributor data file to PDF along with the rich content.
    Any pointers would be helpful.
    Thanks in advance.

    In that case, can you please tel me,how it can be done? Is it converting xml to HTML & then the HTML to pdf??
    I am new to UCM. Request you to elaborate more.
    Is this possible using any UCM provided components for conversion. If yes,which component would be suitable?
    Thanks
    Edited by: RR on Jul 25, 2011 4:08 AM

  • While saving a file, I have converted all my files to Pdf.  The only way to restore previous is to delete Adobe.  Does anyone have a soution?

    While saving a file, I have converted all my files to Pdf.  This made everything inaccessible, even Explorer.  I had to delete Adobe to get back to some of the previous files.  I tried to restore system to previous, but I kept getting a pop up message that said I did not have enough shadow space.  Does anyone have a solution?  Greatly appreciate your help.

    Application, file icons change to Acrobat/Reader icon

Maybe you are looking for