3 Replies Latest reply: Jun 10, 2013 12:49 AM by RPPatrick RSS

    Publication Conversion Script

    RPPatrick Community Member

      Hello Everybody!

       

      I am Patrick and I work for a company called RedactiePartners as a software developer.

      We use DPS to create an Enterprise application for one of our clients.

      The clien doesn't need any big publication at all so most of the time we get a PDF and just import it.

       

      After doing this a couple of times I went looking for scripts that could do this for me and I came across the post by David Schmidt - http://www.adobe.com/devnet/digitalpublishingsuite/articles/dps-pdf-to-indesign.edu.html

      The script in that form let users create a quick way to convert PDF's to a multi pages DPS publication.

       

      It worked fine untill the client requested more and more little edits to these simple conversion.

       

      So I decided to upgrade the script a bit and work from there!

       

      And here is the result: https://github.com/RPSource/All-to-DPS

      Now it's on Github because most of the code was done by David Schmidt.

       

      So what are the biggest differences?

       

      Well the original version just worked and didn't give and option nor feedback.

      So I added a dialog at the start of the script which let's you input a number of options

      One of these options is a template.

      Currently the script supports 2 templates a single pages and a multiple paged

      The multiple paged is basically the David Scmidth version and the Single page creates a .indd file for every single page seperately.

      Also I added the option to choose between more filetypes instead of only PDF (we had a case where the PDF just wouldn't load and had to resort to PNG. But I alwasy recommend using PDF for Quality)

      You can also choose between some devices. Currently this is the support list:

      iPad = 1024x768 (both rotations)

      iPad Retina = 2048x1536 (both rotations)

      Android = 1280x800 (both rotations)

      iPhone = 960x540 (both rotations)

       

      and last but not least you can give a RGB value for a background color if you want.

       

      There is a instruction manual on the Github but for further questions please file a issue on Github or ask here.

       

      Kind Regards,

      Patrick

        • 1. Re: Publication Conversion Script
          DavidS SF Community Member

          Looks interesting, Patrick.

           

          FYI, Derek Lu, here at Adobe, wrote the original script. I just wrote the article.

          • 2. Re: Publication Conversion Script
            CDearn Community Member

            Hi Patrick,

             

            This script is brilliant!

             

            I am using at the moment for Android devices. One question from a script non-expert, I have changed the script so it doesn't fit to the page size otherwise the pdf's are very stretched but I can't seem to work out how to align the pdf in the centre after I have done this, at the moment it aligns from the top so we have a lot of white space at the bottom of the ID doc. Are you able to help?

             

            Thanks,

            Charlotte

            • 3. Re: Publication Conversion Script
              RPPatrick Community Member

              @DavidS SF:

              Correct indeed I wil update the credits thank you!

               

              @CDearn:

              I will take a look at this today.

              I was on a holiday the past week so I couldn't do much except look at my code on github.

               

              Thank you for your patience.