Publication Conversion Script

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

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

Similar Messages

  • Scenario strategy: conversion script purchase orders

    Hi,
    Can anybody email me an example of an conversion script regarding Purchase orders from an other system into SAP? I'am specially interested how to deal with open purchase orders in the old system, when they could not be closed in the old system.
    Thank you in advance,
    Eric van Zundert : email [email protected]
    Additional info regarding strategies about PR's and source lists are very welcome.

    Hi,
    If you want to upload data from old legacy system to SAP you have to do data migration like with LSMW etc.You can upload the system the open purchase orders in legacy system to SAP.Contact your data migration team for that.Even u can retain the old PO ref.
    Thanks
    suresh

  • Framemaker to RTF conversion script

    Hello,
    I have an requirement for a script to do FM to RTF conversion scripts?
    Can someone provide any references or samples for this.
    Thanks & Regards,
    Shail

    Shail,
    The most robust solution – if FrameMaker’s own RTF export is not sufficient – is Mif2Go from Omni System. Check out
    http://www.omsys.com
    - Michael

  • Currency Conversion Script

    Hi guys,
    I’m having performance problems with currency conversion script. Suddenly, the script is taking too long to run. I executed the script last night and today, he was still running. In my application i have about 50 currencies, but i’ve tested just with one and only with a few values to conversion. I deleted the scripts, the exchange rate table, and i create them again, refresh the database but the problem continues. If i am in a data form and run the BR to calculate currencies, everything works fine and he does the conversion with no problems.
    Anyone had the same/similar problem? How do you resolved it?
    All sugestions will be appreciated
    Cheers
    Edit: 11.1.2.1
    Edited by: user12218542 on 18/Jul/2012 12:08

    'Quick' is a relative term. Are you sure that nothing has changed between the time of your quick calc and this time? Did you try changing any cache settings? Maybe, defrag the database using 'restructure' or level 0 export + clear data + import.
    Did you check which part of the calculation takes long? You can do this by evaluating the application log to see which fix statement takes the longest and optimize the parts accordingly.
    As for me, I usually create one or 2 custom dimensions for currency depending on whether users will input in local or multiple currencies. Then, with UDA on entity or other dimension, you can copy data from local to 'USD' or other reporting currency. Once data is copied, currency conversion is simple multiply/divide.

  • Conversion Script Name to Code

    Hi team,
    I am trying to convert Name to Code using Model Options - > Naming Conventions -> Conversion Script.
    For example if I have for entity:
    Name : "Person - Contract"
    Code(by Powerdesigner default) : "Person___Contract"
    But I want just one "_", so it would be like:
    Name : "Person - Contract"
    Code : "Person_Contract"
    Can i do it with Conversion Script?
    Thanks

    Hello ,
    the way i did it:
    1. Create an Extension (or use an existing)
    2. Add metaclass column
    3. Add custom check to column
    4. Enable the options:
    [x] execute the check auto
    [x] automatic correction        
    [x] execute automatic correction        by default
    Add a function under TAB AUTOFIX SCRIPT
    Function %Fix%(obj, outmsg)
    ' CleanString - Clean Code/Name String for Column
       Dim NotAllowed, Substitute, Substitute2
       Dim h
       outmsg = obj.name & " geändert zu "
       NotAllowed = Array("NotAllowed:", vbTab, vbCrLf, " ". ".", ":", ",", ";", "+","%","&", "#", "/", "\", "(", ")")
       Substitute = Array("Umlaute und so            :", "Ä", "Ö", "Ü", "ß")
       Substitute2 = Array("Ersatz für Umlaute und so:", "AE", "OE", "UE", "SS")
    '  HERE YOU COULD DO A CHECK FOR YOUR NEEDINGS
       for h = 1 to UBound(NotAllowed)
          obj.name =  Replace(obj.name,NotAllowed(h),"_")
       next
       Str = UCase(Str)
       For h = 1 To UBound(Substitute)
          obj.name = Replace(obj.name, Substitute(h), Substitute2(h))
       Next
       outmsg = outmsg & obj.name
       %Fix% = True
    End Function
    Edit the function under TAB CHECKSCRIPT:
    Function %Check%(obj)
          %Check% = false
    End Function
    hope that helps

  • Color conversion script

    Hi
    I require to convert RGB image to Graycale or CMYK through script.
    Regards,
    Vinoth

    Thanks for the reply,
    Yes, this would be done in action also, but the conversion of image are more it might be grayscale or CMYK, If in script i could have a radio button type.
    It  would be easy for me to convert rather than action.

  • Transactional replicated articles Identity Specification changes when Publication was scripted

    I recently scripted out a Publication on my SQL 2008 R2 (Standard) Server because I was in the process of restoring the publishing database and needed to tear down/ rebuild replication. After restoring, running my script to recreate replication I noticed
    that the the tables in the subscriber went from having their Identity Specification set to Yes to No. 
    I had manually tore down and rebuilt this same publication in the past, without scripting, and not seen this behavior so I used the UI (SSMS) and did that again. This time the identity specification was back to Yes on the columns where it should be. 
    Why would scripting out an existing publication cause this to happen? What setting or behavior am I missing?
    Thank you

    Please verify the below link:
    http://www.mssqltips.com/sqlservertip/1274/change-not-for-replication-value-for-sql-server-identity-columns/
    Solution:
    The "Not For Replication" setting for identity columns allows replication to pass the ID value from the publisher to the subscriber without the subscriber creating a new ID.  Since identity columns will always generate a new number when records
    are inserted, this setting allows you to ensure the values on both your publisher and subscribers stay in synch.
    Regards, Pradyothana DP. Please Mark This As Answer if it solved your issue. Please Mark This As Helpful if it helps to solve your issue. ========================================================== http://www.dbainhouse.blogspot.in/

  • Need Customer Conversion Script

    Hi All,
    Now I am working on Customer Conversion. So if Any one have the script please send it me.
    My email; [email protected]

    Hi,
    If you want you can select the currency column, right click and select the currency conversion option. In that you specify the target currency.
    PB

  • Open Purchase Order Conversion Script (Data Loader)

    Hi All,
    Hope you all are doing well.
    I need a Quick help from anyone of you peole. Does anyone having Data Loader script for Open Purchase Order.
    I need it badly. My client is using 12.1.3 version.
    Please help.
    Regards,
    Aditya

    Hi All,
    Hope you all are doing well.
    I need a Quick help from anyone of you peole. Does anyone having Data Loader script for Open Purchase Order.
    I need it badly. My client is using 12.1.3 version.
    Please help.
    Regards,
    Aditya

  • Column Type Conversion Script

    Hi All,
    I would like to be able to perform a Column Datatype conversion on a database. I want to find all tables for a schema that has a CHAR type column and then convert it into VARCHAR2 of the same length and MODIFY existing data with a TRIM function to reclaim space.
    The information necessary about any column in a table is DBA_TAB_COLUMNS and I should be able to loop this till the last table.Any suggestions or feedback will be helpful.
    Thank you,
    JeeKay

    Native Dynamic SQL
    http://www.psoug.org/reference/nds.html
    or
    DBMS_SQL
    http://www.psoug.org/reference/dbms_sql.html
    Either one will do it.
    One of my examples shows synonym creation. With a modification of the DDL it will do what you want.

  • Decimal to binary conversion script

    hi
    i m very happy to all of u on ur response
    i m really happy with this forum
    i need a script to convert the decimal number in to binary
    number
    83---------->1010011
    thx

    here are two handlers I picked up from James Newton. I
    couldn't find them anywhere on his site (
    http://nonlinear.openspark.com)
    so I paste them directly here.
    credits go to James.
    on mMakeRuleMap(anInteger)
    -- INPUT: <anInteger> must be an integer
    -- OUTPUT: Returns a 32-item list of 0s and 1s corresponding
    to the
    -- binary representation of anInteger
    if anInteger < 0 then
    tBinary = mMakeRuleMap(the maxInteger + 1 + anInteger)
    tBinary[1] = 1
    else
    tBinary = []
    tBits = 32
    tBinary[32] = 0
    repeat while anInteger
    tBinary[tBits] = anInteger mod 2
    anInteger = anInteger / 2
    tBits = tBits - 1
    end repeat
    end if
    return tBinary
    end mMakeRuleMap
    on mBinaryToDecimal(aBitList)
    -- INPUT: <aBitList> is a list of 0s and 1s (up to 32
    items)
    -- OUTPUT: a decimal number corresponding to the binary
    number
    -- defined by <aBitList>
    tBitValue = 1
    tDecimal = 0
    i = aBitList.count
    if i = 32 then
    if aBitList[1] = 1 then
    -- The number is negative
    i = 31
    tDecimal = the maxInteger + 1
    end if
    end if
    repeat while i
    if aBitList
    then
    tDecimal = tDecimal + tBitValue
    end if
    tBitValue = tBitValue * 2
    i = i - 1
    end repeat
    return tDecimal
    end mBinaryToDecimal

  • Help with Conversion Script

    I have written a program for the hosting company I work with
    to provide users with statistical information. It works great for
    clients using coldfusion. Thats who we have the most of anyway.
    However clients using any other language it does not work for. I
    was wondering if there is some javascript I could use so when
    someone clicks the link I provided and they go thru cflocation to
    the end users website if I could send about three variables in
    javascript that would follow the user thruout the site and then if
    the person reaches a conversion goal I can call on a coldfusion
    page to update my database?
    Did I just make any sense whatsoever?

    Would putting your conversion program into a cfc so it's
    available as a web service help?

  • Conversion Scripts

    Hello All,
    we are re-implementing PeopleSoft 9.0 from 7.0. So, we converted data from PeopleSoft 7.0 (PROD 7.0) to PeopleSoft 9.0 (CNV). Client asked me to validate the data of PAY_CHECK_TBL (I mean Payroll) between PeopleSoft 7.0 and PeopleSoft Database 9.0. I have to show them various counts or differences between these two databases. I am just wondering can any body provide the sqls or scripts to find the various counts or differences.
    Thanks in advance!

    Hello All,
    we are re-implementing PeopleSoft 9.0 from 7.0. So, we converted data from PeopleSoft 7.0 (PROD 7.0) to PeopleSoft 9.0 (CNV). Client asked me to validate the data of PAY_CHECK_TBL (I mean Payroll) between PeopleSoft 7.0 and PeopleSoft Database 9.0. I have to show them various counts or differences between these two databases. I am just wondering can any body provide the sqls or scripts to find the various counts or differences.
    Thanks in advance!

  • How currency COnversion calc scripts refers the HSP_Rates members?

    Hi,
    After creating the corrency conversion script based on selection of Scenario.Version,version type,currency.. planning also creates copy of this script as HSPCrtT & HSPCrtB. Here how its refering to HSP rates dimension?
    Thanks

    Hi,
    Have you restarted Essbase server after increasing cache sizes?
    Also verify if there are any calculations that are dependent on dynamic calc members.
    Assuming Entity is a Sparse dimension, you can use FIX instead of IF in the calc script.
    FIX(@UDA("ENTITY","CNY"))
    "Local" / "Entity"->"Versions"->"Currency"->"Function"->"Level"->"CNY_Rate" ;
    ENDFIX
    ...similarly for rest of entities.
    Also you can use USD instead of LOCAL as you had already copied LOCAL to USD.
    USD = "USD" / "Entity"->"Versions"->"Currency"->"Function"->"Level"->"CNY_Rate" ;
    in similarly way you can try to fine tune the script for better performance.
    Try these things and come up with the outcomes.
    - Krish

  • Need help for Conversion Function in Oracle

    Hi, Can Any One help me Please.
    I need a Oracle conversion script for converting from decimal to hex. and decimal to datetime.
    Thanks In Advance.

    Hi,
    for the Hex-Number-conversion see:
    [url http://psoug.org/snippet/Convert-Hex-to-Decimal-Decimal-to-Hex_78.htm] self-defined Conversion-Functions
    What number format do you have? YYYMMDD
    Or is there a Date corresponding to 1 and a number n represent the date n-1 days after day 1?
    Please describe further.
    Bye
    stratmo

Maybe you are looking for

  • Gnome-Do result window doesn't appear

    Hi, I've just finished my first Arch installation and there's one last hiccup that's bugging me. Whenever I have Metacity composite turned on, the result window in Gnome Do doesn't show up when I press the down arrow, as it should. Even if I mark "Al

  • Search box now requires a URL unlike IE or Firefox 3

    Firefox 3 and IE, searched anything put in the search box. My 4 does not do that 4, instead it asks for a URL. I now have to use the google search box. It is so annoying that after years of Firefox, I now have to use IE

  • What is SAP discovery system?

    I am looking for overview about SAP discovery system. 1. What is SAP discovery system ? 2. How it is different from other R/3 system? 3. Whether it is hardware dependent. I heard it is not available as software package? 4. What are components . As a

  • I can't see the folders (and e-mails) I have create in outlook

    Hello, I have a BB 8520 synchronize with my professionnal account. I receive e-mails without any problem on my BB. The problem is that if I put an e-mail in a sub folder ("test" for example) of my inbox in outlook 2003, my e-mail just disappear from

  • Audio Interface For Logic?

    Im looking to get a interface but Im hearing that only Motu Interfaces only work with Logic if your running Leopard. Is this true.