Reading CSV file, populating text fields, saving each as image to folder

I need to generate a bunch of images by reading a CSV file of records, populating various text fields over an image and then saving each iteration as a new image in a folder. Is Illustrator the best solution to this problem? And if so can someone help me get started?

In my opinion...
While Illustrator is an awesome tool its scripting DOM is a little limited, you may have better luck using InDesign as it has a much broader DOM.
If it is just simple text manipulations and you only require an image (not a document) Photoshop may work well for this as well.
Both the InDesign and Photoshop scripting forums seem to have much more activity as well.
For PhotoShop you can also use the awesome resources @: http://www.ps-scripts.com/bb/
Regards,
Herr Mueller

Similar Messages

  • CSV file with text qualifiers around each field causing error on Import

    Hi
    I have a csv file which I am trying to import - a one line extract is shown below. It is delimited by semi colon and each field has a text qualifier around it.
    XXX Drinks Ltd;"BR01";"1";"001.2008";"2008";"Distribution";"-186";"-186";"-186"
    When importing i get the following issue
    1) BPC doesn't seem to handle the text qualifier for the fields. For example the "BR01" field above requires me to put a conversion as follows ""BR01"" i.e. I have to double the quotes because BPC adds them
    2) Even after the required conversion, BPC does not like the double quotes around the amounts, even though when validating the transform I get no error message, when running the import package I get the following message
    Record Count: 1
    Accept Count: 1
    Reject Count: 0
    Skip Count  
    The number of failing rows exceeds the maximum specified. (Microsoft Data Transformation Services (DTS) Data Pump (8004202c): TransformCopy 'DTSTransformation__9' conversion error:  General conversion failure on column pair 1 (source column 'SIGNEDDATA' (DBTYPE_STR), destination column 'SIGNEDDATA' (DBTYPE_NUMERIC)).)
    Does this my source file can't have double quotes as a text qualifier?
    thanks in advance
    Scott Farrington

    James, thanks for your reply
    does that mean that BPC can't deal with the double quotes? I understand about removing them and using a comma for a delimiter, but this is the file format I have been given.
    What I really need to know is, given this format, using a transformation and/or mapping function, can I import the data the way it is?
    And I still need an answer to my second point, about the error message received on running the import package,
    thanks
    Scott

  • Question about reading csv file into internal table

    Some one (thanks those nice guys!) in this forum have suggested me to use FM KCD_CSV_FILE_TO_INTERN_CONVERT to read csv file into internal table. However, it can be used to read a local file only.
    I would like to ask how can I read a CSV file into internal table from files in application server?
    I can't simply use SPLIT as there may be comma in the content. e.g.
    "abc","aaa,ab",10,"bbc"
    My expected output:
    abc
    aaa,ab
    10
    bbb
    Thanks again for your help.

    Hi Gundam,
    Try this code. I have made a custom parser to read the details in the record and split them accordingly. I have also tested them with your provided test cases and it work fine.
    OPEN DATASET dsn FOR input IN TEXT MODE ENCODING DEFAULT.
    DO.
    READ DATASET dsn INTO record.
      PERFORM parser USING record.
    ENDDO.
    *DATA str(32) VALUE '"abc",10,"aaa,ab","bbc"'.
    *DATA str(32) VALUE '"abc","aaa,ab",10,"bbc"'.
    *DATA str(32) VALUE '"a,bc","aaaab",10,"bbc"'.
    *DATA str(32) VALUE '"abc","aaa,ab",10,"b,bc"'.
    *DATA str(32) VALUE '"abc","aaaab",10,"bbc"'.
    FORM parser USING str.
    DATA field(12).
    DATA field1(12).
    DATA field2(12).
    DATA field3(12).
    DATA field4(12).
    DATA cnt TYPE i.
    DATA len TYPE i.
    DATA temp TYPE i.
    DATA start TYPE i.
    DATA quote TYPE i.
    DATA rec_cnt TYPE i.
    len = strlen( str ).
    cnt = 0.
    temp = 0.
    rec_cnt = 0.
    DO.
    *  Start at the beginning
      IF start EQ 0.
        "string just ENDED start new one.
        start = 1.
        quote = 0.
        CLEAR field.
      ENDIF.
      IF str+cnt(1) EQ '"'.  "Check for qoutes
        "CHECK IF quotes is already set
        IF quote = 1.
          "Already quotes set
          "Start new field
          start = 0.
          quote = 0.
          CONCATENATE field '"' INTO field.
          IF field IS NOT INITIAL.
            rec_cnt = rec_cnt + 1.
            CONDENSE field.
            IF rec_cnt EQ 1.
              field1 = field.
            ELSEIF rec_cnt EQ 2.
              field2 = field.
            ELSEIF rec_cnt EQ 3.
              field3 = field.
            ELSEIF rec_cnt EQ 4.
              field4 = field.
            ENDIF.
          ENDIF.
    *      WRITE field.
        ELSE.
          "This is the start of quotes
          quote = 1.
        ENDIF.
      ENDIF.
      IF str+cnt(1) EQ ','. "Check end of field
        IF quote EQ 0. "This is not inside quote end of field
          start = 0.
          quote = 0.
          CONDENSE field.
    *      WRITE field.
          IF field IS NOT INITIAL.
            rec_cnt = rec_cnt + 1.
            IF rec_cnt EQ 1.
              field1 = field.
            ELSEIF rec_cnt EQ 2.
              field2 = field.
            ELSEIF rec_cnt EQ 3.
              field3 = field.
            ELSEIF rec_cnt EQ 4.
              field4 = field.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
      CONCATENATE field str+cnt(1) INTO field.
      cnt = cnt + 1.
      IF cnt GE len.
        EXIT.
      ENDIF.
    ENDDO.
    WRITE: field1, field2, field3, field4.
    ENDFORM.
    Regards,
    Wenceslaus.

  • How to create pdf files with text field data

    how to create pdf files with text field data

    That looks like it should work, but it doesn't.
    I opened the PDF I had created from Word in Acrobat (X Pro). Went to File > Properties. Selected "Change Settings". I then enabled "Restrict editing...", set a password, set "Printing Allowed" to "none", "Changes Allowed" to "none", and ensured that "Enable copying of text..." was disabled.
    I saved the PDF file, closed Acrobat, opened the PDF in Reader, and I was still able to select text and graphical objects.
    I reopened the PDF in Acrobat, and the document summart still shows everything as allowed. When I click on "show details" (from File > Properties) it shows the correct settings.
    Any ideas?

  • Mapping IDOC to CSV file - Missing blank field values in CSV file

    Hello:
    I am mapping an IDOC to a .csv file, using File Content Conversion.  I specify comma as the value for the parameter 'fieldSeparator'.  I get a .csv file, but blank field values are missing in the .csv file.
    For example, if the .csv file format is <field1>,<field2>,<field3>
    and if <field2> is blank, then the .csv file contains
    <field1>,<field3>

    Hi Bac,
    As long as the XML that goes to your File Receiver Channel contains the elements, even if they don't contain values, it should work fine.
    For example:
    <field1>data</field1>
    <field2></field2>
    <field3>data2</field3>
    I suspect that your XML looks like the following:
    <field1>data</field1>
    <field3>data2</field3>
    If this is the case you can update your map. You shouldn't need to put a space, just make sure the element gets created.
    Thanks,
    Jesse

  • Use servlet read .csv file by ie, but why two more " ?

    Hi , friends
    following is the key method in my servlet used to read .csv file to ie , but , after I read file to client side , I found that in the both sides of every line " was added, so the csv file can have only one column (many columns was merged into one column), that was not what i want, who guys can find some idea? thanks for your enthusiasm!
    void serveRemoteFile(String sFileName, String sContentType, HttpServletRequest req, HttpServletResponse res, StringBuffer sbLog, Runtime rt){
    FileInputStream in = null;
    ServletOutputStream out = null;
    byte bBuf[] = null;
    int nLen;
    if (isBlank(sContentType) || isBlank(sFileName))
    return;
    res.setStatus(res.SC_OK);
    res.setContentType(sContentType);
    res.setHeader("Content-Disposition", "inline;filename= temp.csv");
    try {
    in = new FileInputStream(sFileName);
    out = res.getOutputStream();
    bBuf = new byte[1024];
    while ( (nLen = in.read(bBuf,0,1024)) != -1) {
    out.write(bBuf, 0, nLen);
    out.flush();
    out.close();
    }catch (FileNotFoundException e){
    errorPage(req,res,sbLog);
    }catch (IOException e){
    errorPage(req,res,sbLog);

    Excel uses a weird CSV file format. You can find more information about it and a Java library to read data from it here:
    http://ostermiller.org/utils/ExcelCSV.html

  • Drivers to read CSV file

    Hi,
    In one of my application, I need to read CSV file as a database and read the columns from the CSV file. Can I get any drivers which accepts CSV file as a datasource and I can query on that datasource?
    I know this will work in Windows.. But I am working on UNIX and need drivers to be installed on Unix.
    Does any one knows how to do it or if they can provide any links, That is of very helpful for me..
    Please help me in resolving this problem..

    Hi
    You need to use a JDBC driver of Type 3 to do your task.
    Swaraj

  • Auto-populating text fields

    How can I set up a series of pdfs in a folder so that text from a text field (such as a name) on one pdf will populate the same text field on other pdfs in a folder?

    There is no automatic way to do this.
    You would need to write a plugin or extra application that talked to Acrobat to do it.

  • Paste is only pasting a text field instead of an image copied to the clipboard from another program like mail or safari?

    The latest version of Keynote only pastes a blank text field after copying an image to the clipboard in other applications like mail or Safari.  The previous version worked fine with copying and pasting images.  Saving the image to a file and then inserting the image file is the only work-a-round I have found so far.

    To place an image on a slide, use Finder to drag and drop the file onto the slide.

  • Read CSV file each field is enveloped within double quotes

    Hi All,
    I have a txt file in Apps server which is separated by comma but each values are in double quotes.
    Reason some text fields might have comma as value and not as separator
    Example:-
    "00601100001","","","","","BIJOUTERIE ,SARAH III","","1500"
    How will i read this file.
    thanks in advance.
    SG

    Hi,
    try this code... file contains 3 fields , separtde by comma...
    * report name
    REPORT zupload_csv_file.
    * data declarations
    TYPES: BEGIN OF ttab,
    rec(1000) TYPE c,
    END OF ttab.
    TYPES: BEGIN OF tdat,
    fld1(10) TYPE c,
    fld2(10) TYPE c,
    fld3(10) TYPE c,
    END OF tdat.
    DATA: itab TYPE TABLE OF ttab WITH HEADER LINE.
    DATA: idat TYPE TABLE OF tdat WITH HEADER LINE.
    DATA: file_str TYPE string.
    * selection screen design
    PARAMETERS: p_file TYPE localfile.
    * at selection screen for field
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
    static = 'X'
    CHANGING
    file_name = p_file.
    * start of selection
    START-OF-SELECTION.
    file_str = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = file_str
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    * process and display output
    LOOP AT itab.
    CLEAR idat.
    SPLIT itab-rec AT ',' INTO idat-fld1
    idat-fld2
    idat-fld3.
    APPEND idat.
    ENDLOOP.
    LOOP AT idat.
    WRITE:/ idat-fld1, idat-fld2, idat-fld3.
    ENDLOOP.
    With Rgds,
    S.bharani

  • Reading csv file how to get the Column name

    Hi,
    I am trying to read a csv file and then save the data to Oracle.
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection c = DriverManager.getConnection("jdbc:odbc:;Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=.;Extensions=csv,txn");
    Statement stmt = c.createStatement();
    ResultSet rs = stmt.executeQuery("select * from filename.csv");
    while(rs.next())
       System.out.println(rs.getString("Num"));
    My csv file looks like this:
    "CHAM-23","COMPANY NAME","Test","12",20031213,15,16
    Number,Environ,Envel,Date,Time
    "1","2",3,"4",5
    "6","7",8,"9",9
    Now is there anyway using the above code I start processing the file from the second row that holds the names of the columns and skip the first row. And also can I get the name of the column using ResultSet something like:
    if columnName.equals("Number")
    Because I may have a csv file that could have more columns:
    "CHAM-24","COMPANY NAME","Test","12",20031213,16,76
    Number,Environ,Envel,Date,Time,Total,Count
    "1","2","3","4","5",3,9
    "6","7","8","9",9",,2
    So I want to get the column name and then based on that column I do some other processing.
    Once I read the value of each row I want to save the data to an Oracle Table. How do I connect to Oracle from my Application. As the database is on the server. Any help is really appreciated. Thanks

    The only thing I could think of (and this is a cluj) would be to attempt to parse the first element of each row as a number. If it fails, you do not have a column name row. You are counting on the fact that you will never have a column name that is a number in the first position.
    However, I agree that not always placing the headers in the same location is asking for trouble. If you have control over the file, format it how you want. If someone else has control over the file, find out why they are doing it that way. Maybe there is a "magic" number in the first row telling you where to jump.
    Also, I would not use ODBC to simply parse a CSV file. If the file is formatted identically to Microsoft's format (headers in first row, all subsequent rows have same number of columns), then it's fine to take a shortcut and not write your own parser. But if the file is not adhering to that format, don't both using the M$ ODBC driver.
    - Saish
    "My karma ran over your dogma." - Anon

  • Addressbook cant read .csv-files exported from Numbers (Solved)

    Hello,
    I can hardly believe this myself, but please try. Numbers separates fields by semicolons while exporting my address data to a .csv file, which seems completely feasible to me. When trying to import this into Addressbook, the applications moans that it cant import this file because it is not valid.
    Do programmers from separate groups at Apple ever test whether their Apps work together? I just expect them to do so and I cant imagine a case more simple then that. This is really poor. The reason why I put this complaint in the Numbers discussion is, that there is no forum for Adressbook (whereas iCal got his own - why?).
    And the reason why I pick up this topic again in a new thread is that the other thread I found related to transferring data from Numbers to Addressbook took a weird twist when they resorted to writing a complicated and elaborate Apple Script for this basic task. The Script provided there messed up with valuable Address data in the first version, so I am not going to try it here.
    I just took the search and replace functionality of my text editor to solve it for me. But I still believe that this should work without headaches right out of the box. So Addressbook programmers please hurry up, go, fix it. It is just too distressing. Imagine, I did this in public with Windows guys around. I dont want to experience such again.
    Yours, Christian Völker

    Hello Yvan,
    yes, I agree that Numbers is doing fine and by your explanation I even know why it does the way it does, but Addressbook remains broken.
    Regarding your script I did not even bother to read it and I just dont trust it because I cant sue you in case something goes wrong. I prefer to do my own faults and in this case it was an even better and faster solution for me to use my text editor with search and replace.
    To make the story complete, after the data was accepted, Addressbook wasnt able to recognize the field labeled "Email" as an Email Address and Street as a Street Name. After telling Addressbook about the meaning of the fields, it consistently crashed while importing. No, this is no good. A Script wont heal these flaws.

  • Labview not reading csv file properly.

    I'm trying to use the read spreadsheet file vi to read the attached csv.
    It does a few things incorrectly:
    1) the first cell of the resulting array has ÿþ appended to the front of it, seems like labview is grabbing some special character it shouldn't? (Notepad, notepad++ and excel can all open the file without issue and none show ÿþ or anything like it).
    2) It's mistreating the EOL characters as two line feeds, resulting in blank rows between each data row. (Looking at the csv in notepad++ confirms that the lines are ended with a CR and a LF (same as EOL).
    3) I'm reading it in as a string, because one of the columns is non-numeric, but then I strip that column out and attempt to convert the remaining string array into a numeric array (this fails). It also fails if I pull out an individual element of the array and attempt to convert it to a number (in both cases using fract/exp string to number), below I have an example of trying to read the 2nd column of the 1st row (index: 0,1) which is formatted as a string: "1.37238168716431" and converting that into a number gives 0 as you can see in the snapshot of the front panel.
    Solved!
    Go to Solution.
    Attachments:
    REPORT02.CSV ‏4 KB

    I guess the file is in unicode, that doesn't help me very much.
    I don't use the "Read from Text File Function" - at least not directly, although it is called in Read from Spreadsheet File. Where is it called, however, right-click doesn't show an option for Convert EOL, instead it's a terminal and it's default is F and as the terminal is disconnected, I'm assuming it's not converting EOL. So it's already "unchecked" in a sense.
    No idea how to convert the unicode string to ascii. (no functions show up when i search unicode or ascii in the manager). It displays it just fine in the text box, so I'm not sure why it's able to display it without issue but not read it as a number.
    Using Labview 8.6, by the way.

  • Reading CSV files

    Hi,
    I want to read in a CSV file, which I think I can do using the filereader and tokenizer classes. The complications are:
    1) The first line of the csv file is a load of headings - is there an easy way to ignore the first line?
    2) I am only interested in one column of the file, it's a column of exam marks ranging from 0-99. I think I can set up a loop to tokenise until I get to the specified marks token (ie the 10th column along), but this is complicated by no. 3...
    3) I need to be able to deal with nulls, at the moment as soon as it reaches a null cell the application stops and throws an exception. There is a complete line with blank cells part way through the file. I need to be able to get past this and continue reading the rest of the file. I can't quite get my head round how to catch the exception and continue the file reading until the true end of file.
    Can anyone help?!!
    Thanks
    Guy

    String[] tokens = line.split(",");It's not quite that simple. Consider the following
    line of CSV data:
    "This is one cell, with a comma in the text","This one has ""double quotes"" around part of it",,The previous cell was emptyIf you can parse that as four cells, I think you can parse
    anything Excel produces.So are commas and double-quotes the only metacharacters? If so, you could tokenize on both characters, and use the StringTokenizer constructor that returns the separators as tokens. Then write a simple parser. (Relatively simple, that is.)
    Are the only rules:
    * if the first part of a field is a double quote, then it's a quoted field
    * if two adjacent quotes appear in a quoted field, then they represent a single double quote char
    * if a comma appears in a quoted field, it's a comma in the field, not a field separator
    * a single double quote char ends a quoted field
    * commas are field separators, unless quoted as above
    If so, then you have the basis for your simple parser.

  • Populating text fields

    I have an application that loads variables from a text file.
    It loads them into several dynamic text fields by using the
    variable property. I tried populating other text fields with these
    values but doesnt seam to work.
    i tried this.
    username.text = username;
    I tried this because i need the value of the variable
    "username" to appear in the username text field.
    Why didnt this work. How can i correct this?
    Thanks

    it's a component? Why do you need that? Create the username
    simply with a dinamic text field and assign the data to it.
    I think your missing something. from what i remember and i'm
    not so good at this ( i must first see an exemple of something made
    by me) you must have a variable which contains the variable in
    which the data is loaded.
    I have to check out first some work i did to remember. If
    problem not solved i will come back in a few hours with the
    answer.

Maybe you are looking for

  • How to pack .class or .jar with jvm into an exe file?

    In fact, .class or .jar files are middle layer files who need JVM to explain and run them. Sometimes it's unconvenient. Why not provide some tools to pack .class or .jar with jvm into exe file?

  • Random Kyocera Shut Downs.

    I have a Kyocera Hydro.  Nice phone and very little that I find wrong with it except one thing. I have had this phone randomly shut down on me 2 times now.  Once it was in the middle of the night when it was plugged in and charged fully. The second t

  • When i try to install Photoshop Elements 10 why does it keep telling me to insert disk

    I purchased a Wacom Bamboo Create and it came with a software package which included Photoshop Elements 10 but when I try to install it, it accepts my serial number but won't let me complete the process. It keeps telling me i need to "insert Photosho

  • Can't convert 16x9 to 4x3

    I created a 39min 16x9 video using iMovie HD 6 with 16x9 footage from an HD video camera combined with still images and music. I have shared this with iDVD successfully to create a widescreen video. My in-laws do not have a widescreen TV so I am tryi

  • OPSI setting remain as ABAP code after client deletion

    Hi all, I'm just wondering if anyone face this problem before: 1. I've created some test data in OPSI (validations of project system) in a test client (eg: 201) 2. I perform client deletion on 201 and client copy from PRD to 201 3. If I check the inc