Javascript needed for adding filenames to MULITPLE pdfs - thanks

Hi there,
Im familiar with batch processing and i’ve found some information on the filenames, but I cant really get this to work. I have multiple PDFs and i’d like to add the file name of each PDF to the bottom of each page for our printer. I know this requires javascript, and so far the only code that i was able to get work, was an actually javascript file that i inserted into the adobe folder creating a new button to “print with file name” this was great, but didn’t help with my batch of files.
Thank you.

And what code are you using?
The code beside adding the button should have code to add a filed to the PDF pages and add the 'WillPrint" action. I have found some of this code is best done by using a function to perform the adding of a field and setting the will print action.

Similar Messages

  • Javascript needed for multiple lines of the same calculations: price x quantity = total

    I have received some help already but I need more details - like exactly where to place the code - and - do I place the code before using "Place Multiple Fields?  Also, does the first Total1.0 field need any calculation in it or does the area under the "Calculate" tab need to be blank?
    The fields in the example below were placed using "Place Multiple Fields".  Instead of going into the Total fields one at a time and telling it to pick up the correct field names for Price and Qty for that row, I'd love a formula that was able to figure out the totals for each row.   The only thing is that when you use "Place Multiple Fields" the field names change (e.g. Price1.0, Price1.1, Price1.2, etc.)
    I really need this spelled out step by step for me, if someone has time time.
    Thank you x 1,000,000.

    With Hierarchical field names one can create an array of the lower field objects below a one of the levels in the hierarchy.
    // Custom JavaSCript for the subtotal field;
    var oHFieldTotal = this.getField("Total1");
    var aHFieldTotal = oHField.getArray(); // Total field objects in an array;
    var aHFieldPrice = this.getField("Price1").getArray(); // Price field objects in an array;
    var aHFieldQty = this.getField("Qty1").getArray(); // Qty field objects in an array;
    var nSum = 0; // sum of extended price * qty;
    // process each row of fields;
    for(i = 0; i < aHField.length; i++) {
    aHFieldTotal[i].value = aHFieldPrice[i].value * aHFieldQty[i].value; // compute the extended value;
    nSum += aHFieldTotal[i].value; // add the extended value to the running sum;
    } // end for loop;
    event.value = nSum; // set the field value to the running sum;

  • Advice needed for converting AI file to PDF

    I'm working on some 11x17 page size illustrator files that are of aerial photo maps (with a legend).
    Can someone offer me some advice on how to best convert these files to pdfs and keep the photo quality high and keep the file size as low as I can get it??? I basically can convert it to a pdf but I don’t understand the compression settings section (assuming that’s what needs to be changed in order to accomplish this?).
    Thanks

    This is a trick I find works well.
    Just save it as a pdf and open in Acrobat, then (Acrobat X) go to tools and then Prepare for Web Publishing, use all the default settings.
    This should reduce the file as much as 1/3 the size sometimes even more.
    It has no effect on the qquality.

  • Encoding Needed for polish content in dynamic pdf

    I am creating dynamic pdf using pdfwriter and java in cq5. I am not able to get polish language content in pdf.
    What encoding should i use? Here my code: 
    XMLWorkerHelper.getInstance().parseXHtml(
      writer,
      document,
      new ByteArrayInputStream(htmlBufferForPDF.toString().getBytes("ISO-8859-2")));
    But it doesn't work out. I used "UTF-8" and "ISO-8859-1". Nothing is working out.
    Please post suggestions.

    This is the forum for Adobe Acrobat. I recommend you find a support forum or mailing list for iTextPDF.
    Never assume that software which is able to show latin 1 characters will be able to show any other character set. The software must be much more powerful to do that.

  • Power Down needed for adding extra disk

    I have a sun netra 240 which currently has one 72GB disk,
    I am adding an extra 72GB disk, my question is do I need
    to power down the server to insert the new disk or can I
    insert it while power is on ????

    You do not need to power the server off to insert the new disk, this can be done live. The only thing you might have to do is run devfsadm after inserting the disk.

  • Urgent need for Adding Comments

    Hai,
    I have to add a comment before the root node dynamically.
    I am adding a comment dynamically by using the following code.
    //Getting the docuement.
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse("cd.xml");
    //Getting the root element
    Element rootElement = doc.getDocumentElement();
    //creating the comment.
    Comment comment = doc.createComment("A Document Comment");
    //Adding comment before the root element.
    rootElement.getParentNode().insertBefore(comment,rootElement);
    //Transforming in to the xml file.
    DOMSource ds = new DOMSource(rootElement);
    StreamResult sr = new StreamResult(new java.io.File("cd.xml"));
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer trans = tFactory.newTransformer();
    trans.transform(ds,sr);
    Program is compiling and running sucessfully. But it is not getting added into the result XML File.

    Document doc = db.parse("cd.xml");
    //Getting the root element
    Element rootElement = doc.getDocumentElement();
    //Transforming in to the xml file.
    DOMSource ds = new DOMSource(rootElement);...
    trans.transform(ds,sr);The node you are using as parameter of the DOMSource constructor is the rootElement. The comment you insert before that element is, of course, before the rootElement object, so the DOMSource object should be created with the comment node as the constructor's input parameter.

  • Script for adding datafile to tablespace

    Hi
    Does anyone have a template alter tablespace add datafile script handy?
    Basically, we need to, in the event of a tablespace alert, do two things:
    query that tablespace to see how much space is remaining.
    ascertain the size of the datafiles added to that tablespace already (to clarify what size we should make the additional datafile)
    finally, the command itself for adding the extra datafile.
    Thanks.
    10.0.2.0

    SELECT Total.tablespace_name "TSPACE_NAME",
    round(nvl(TOTAL_SPACE,0),2) Tot_space,
    round(nvl(USED_Space,0),2) Used_space,
    round(nvl(TOTAL_SPACE - USED_Space,0),2) Free_space,
    round(nvl(round(nvl((TOTAL_SPACE - USED_Space)*100,0),2)/(Total_space),0),2) "USED%"
    FROM
    (select tablespace_name, sum(bytes/1024/1024) TOTAL_SPACE
    from sys.dba_data_files
    group by tablespace_name
    ) Total,
    (select tablespace_name, sum(bytes/1024/1024) USED_Space
    from sys.dba_segments
    group by tablespace_name
    ) USED
    WHERE Total.Tablespace_name(+) = USED.tablespace_name and
    round(nvl(round(nvl((TOTAL_SPACE - USED_Space)*100,0),2)/(Total_space),0),2)< 20;
    the above query will display tablespaces which are having freespace below 20%
    select file_name,autoextensible,sum(bytes)/1024/1024,sum(maxbytes)/1024/1024
    from dba_data_files
    where tablespace_name='TBS_NAME'
    group by file_name,autoextensible;
    the above query will give details of datafiles like autoextensible or not etc.
    SELECT SUBSTR (df.NAME, 1, 40) file_name,dfs.tablespace_name, df.bytes / 1024 / 1024 allocated_mb,
    ((df.bytes / 1024 / 1024) - NVL (SUM (dfs.bytes) / 1024 / 1024, 0))
    used_mb,
    NVL (SUM (dfs.bytes) / 1024 / 1024, 0) free_space_mb
    FROM v$datafile df, dba_free_space dfs
    WHERE df.file# = dfs.file_id(+)
    GROUP BY dfs.file_id, df.NAME, df.file#, df.bytes,dfs.tablespace_name
    ORDER BY file_name;
    the above query will show how much freespace is left in each datafile.

  • Reader rights for adding attachment

    Hi ,
    is it possible to apply reader rights for adding attachments when output pdf form in sap?
    where can i find more document on controlling reader rights?
    thanks and best regards.
    Jun

    Hi Jun,
    here is a sample code for seting usage rights:
    FORM use_rights
      CHANGING p_pdf TYPE xstring.
    DATA: l_fp           TYPE REF TO if_fp,
          l_pdfobj       TYPE REF TO if_fp_pdf_object,
          l_dest TYPE rfcdest.
    MOVE cl_fp=>get_ads_connection( ) TO l_dest.
    l_fp = cl_fp=>get_reference( ).
    l_pdfobj = l_fp->create_pdf_object( connection = l_dest ).
    l_pdfobj->set_document( pdfdata = l_pdf ).
    DATA: lt_rights TYPE TFPURIGHT.
    PERFORM my_usagerights CHANGING lt_rights.
    l_pdfobj->set_usagerights( default_rights = space  rights = lt_rights ).
    l_pdfobj->execute( ).
    l_pdfobj->get_document( IMPORTING pdfdata = l_pdf ).
    ENDFORM.
    FORM my_usagerights
        CHANGING pt_rights TYPE TFPURIGHT.
      DATA: ls_rights LIKE LINE OF pt_rights.
      REFRESH pt_rights.
      ls_rights-right = if_fp_pdf_usage_rights=>formrights.
      ls_rights-value = if_fp_pdf_usage_rights=>formright_fillin. "Ukladani
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-value = if_fp_pdf_usage_rights=>formright_export. "Export XML
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-value = if_fp_pdf_usage_rights=>formright_add.
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-value = if_fp_pdf_usage_rights=>formright_delete.
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-value = if_fp_pdf_usage_rights=>formright_submitstandalone.
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-value = if_fp_pdf_usage_rights=>formright_spawntemplate.
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-value = if_fp_pdf_usage_rights=>formright_online.
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-right = if_fp_pdf_usage_rights=>signrights.
      ls_rights-value = if_fp_pdf_usage_rights=>signright_modify.
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-right = if_fp_pdf_usage_rights=>annotrights.
      ls_rights-value = if_fp_pdf_usage_rights=>annotright_create.
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-value = if_fp_pdf_usage_rights=>annotright_delete.
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-value = if_fp_pdf_usage_rights=>annotright_modify.
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-value = if_fp_pdf_usage_rights=>annotright_copy.
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-value = if_fp_pdf_usage_rights=>annotright_import.
      INSERT ls_rights INTO TABLE pt_rights.
      ls_rights-value = if_fp_pdf_usage_rights=>annotright_export.
      INSERT ls_rights INTO TABLE pt_rights.
    ENDFORM.
    Michal

  • Special authorization need for read cluster table??

    In one report, I use following coding to read information from RFDT table:
    form get_f110_parm .
      f110id-laufd   = p_laufd.
      f110id-laufi   = p_laufi.
      f110versionpar = space.
      clear:   buktab, fkttab, slktab, sldtab, trctab, usrtab,
               faetab, jobtab, f110v, f110c,  trcopt, f110versionpar.
      import buktab fkttab slktab sldtab trctab usrtab
             faetab jobtab f110c trcopt f110versionpar
             from database rfdt(fb) id f110id
             accepting padding.
    endform.                    " GET_F110_PARM
    I can fill F110c, trcopt and f110versionpar by this program. But there is no entry in table like fkttab, usrtab.
    Is there any authorization need for read cluster table??
    Thanks in advance.
    Edited by: Amy Xie on Dec 21, 2010 10:41 AM

    Hello,
    After you run your code, check transaction SU53 to see if any authorization check failed.

  • I have nine, 1-page PDF files that are accessible and need to combine into 1 PDF file.  I have tried appending, adding and the combine PDFs process. The file created is not keeping my changes. The created file is partially accessible but I have to re-fix

    I have nine, 1-page PDF files that are accessible and need to combine into 1 PDF file.  I have tried appending, adding and the combine PDFs process. The file created is not keeping my changes. The created file is partially accessible but I have to re-fix issues I had fixed in the single files. I need suggestions on what else can be done if any. Using Acrobat pro XI.

    Out of habit, I tend to combine PDF files in the Page Thumbnails pane by right-click then "Insert Pages" -> "From File". For me, this preserves the tags from both documents, although the tags may have to be moved into the right location (if I recall correctly the tags for the inserted pages get put at the end of the tag structure, regardless of where the pages are inserted), If I first put the tags for the document to be inserted inside a container tag like Section, it makes the process easier. Moving that set of tags to the right place is the only re-fixing that I recall having to do. What behavior are you experiencing?
    a 'C' student

  • I have Windows 98 and need Acrobat to open up the pdf files for 5.0

    I have the old system, Windows 98 and presently have the free Adobe 5.0 version on my Compaq Presario Computer, and it is a 5242 model desktop.
    I have inadvertanly switched over to Compaq Carbon Copy 32 Version 5.0 but since, have uninstalled it and now, on each of what was the pdf files initially of which I have, of which is at least 16 or more, on each of those files, an error message comes up and says "PROGRAM NOT FOUND," and states the following: "Windows cannot find CCW32EXE. This program is needed for opening the pdf files." And then it has a dialogue box with the computer operational symbol in it as C:\ and then it wants me to locate it. I cannot locate it through the "auto" because, this sytem being so old, doesn't have a magnifying glass or a "search" tool to do this in the "My Computer Icon on the Desktop as the Compaq people wanted me to do. I would have to do this manually. I have already talked to the Compaq people on their chat line and because of this, they said they couldn't help me with this problem and referred me over to you.
    I've tried to find a download for 5.0, though I really don't think I need one since it is currently installed. I believe the proper way to fix this is to just convert the CCW32EXE over to the Acrobat pdf files and have those files opened and should open up all of my 15 or so files altogether at the same time because they all converted over to something else at the same time prior.
    Are you able to help me?
    But I believe to alleviate this problem, if you could just give me the information to be able to open up the pdf files to 5.0 and find out what download I may pursue, it might be able to correct this problem. I already have the 5.0 Acrobat installed, however.

    Hi Aandi,
    I have followed your directions and I have the old system of Windows 98, so I had to go to "programs" and come up to Acrobat 5.0 and once in there, all of the Window there is greyed out, although I can still go to the tool bars above in it. I went to "file" and went to "open" and from there, I received an "open" window with a dialogue box in it and in that dialogue box as I scrolled down, it wants me to put in there, one of the following, "desktop," "my documents," "3 1/2 floppy [A:]," "[C:]," "system _save [D:]," ""[E:," "[F:]," ete; of these which do I pick in the "open" dialogue box? and down at the bottom, is the FILE NAME and what do I put in there? Just below that, it has the FILES OF TYPE which has there Adobe pdf Files, in it's dialogue box. I hit these, but I still get an error message of which basically says, "NOT FOUND, please put in proper file name given." And I don't know actually where it is given.
    So, as you see, I am a novice in all of this and you can contact me at my e mail address which is [email protected]
    and should a reply be needed, I'll come back to the forum for a reply.
    I really need to open up the Adobe 5.0 pdf files. All of the pdf files, simultaneously went over to Compaq Carbon Copy 32 of which I since, uninstalled. But I really need to get back and open the Adobe 5.0 pdf files.
    And I want to thank you for your support and eagerly awaiting your help.
    Thanks,
    Now, I did do one of the following: I went to C: which came to Acobat 3 and I hit that which came to Reader and I hit that which came to the following: ACROBAT which gave me ACTIVE X - BROWSER - FONTS - HELP - OPTIONAL - PLUG-INS

  • Is Acrobat Pro right for us. We have an Employee Handbook that needs editing. Some is current pdf, some from an older version. Want to get all into one handbook, have the table of contents automatically adjust and link to specific pages from the ToC.

    Is Acrobat Pro right for us. We have an Employee Handbook that needs editing. Some is current pdf, some from an older version. Want to get all into one handbook, have the table of contents automatically adjust and link to specific pages from the ToC.

    You can download the trial version (http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html) to convert the PDF back to WORD if you do not have the original. The conversion may not be perfect, but it is typically better than starting from scratch. You may be lucky and get a good result. You might check the settings (in the save screen) to try retain format versus retain text flow. The format version can be a pain to edit since it creates a bunch of text boxes. The flow version may require you to reformat in WORD, but you likely would want to do that anyway.

  • How many Licenses of Acrobat Professional do I need for Adobe LC PDF Generator

    Hi,
    At our customer site we have purchased 6 licenses of Adobe LiveCycle PDF Generator and have recieved a license file with the keys for Adobe LiveCycle PDF Generator and Adobe Acrobat Professional. We bought the license from a reseller of the product. We understand that the Adobe LiveCycle PDF Generator is a server based software and needs 1 license per CPU. Each of our server (Dev, Val & Prod) have 2 CPU's so we have sufficient licenses (6). We are under the impression that this would suffice. How ever we are not sure on how many licenses we need for Acrobat Professional.
    Here is a brief description of the way we would use Adobe LiveCycle PDF Generator. We are deploying a PLM system and one of the requirement is to render Word documents to PDF so we are using PDF Generator for this capability. On our Adobe servers we will install Microsoft Word, Acrobat Professional V9 Extended and the Adobe Livecycle PDF Generator. We will have around 150 users for the PLM system being deployed. The PLM system is a Web based system which means the PLM application server will be running on a Solaris server in our case. As part of the workflows in the PLM system, at the end of the workflow process, the PLM server would trigger a request to the Adobe server to convert the word document to PDF. The Adobe server processess the request and returns the PDF file that gets generated.
    Based on the above usage of the system how many licenses of Acrobat Professional do we need? We will be installing Acrobat only on the server where we install the Livecycle PDF Generator. We had a call with our purchasing person today and she cautioned us that for Adobe Acrobat Professional we might need 1 license per user of the PLM system. She has asked us to check this with the Vendor of the product. Somehow I don't think it makes sense to purchase so many Acrobat Professional licenses even though we install only once.
    So can someone tell me How does the licensing for Adobe Livecycle PDF Generator work? How many Acrobat Professional licenses we actually need? Is it based on the number of users in the system that is triggering the request? Appreciate your response on this.
    Regards,
    Ragha

    You really should talk to your Adobe Sales Rep about this.  There are all kinds of special deals, licenses and such for customers using LiveCycle.  (For instance the license for PDFG may include Acrobat licenses for certain uses).

  • Need to Pass filename for archived file to FTP adapter using SynchRead

    Hi
    I am archiving the source file which i am reading using an FTP adapter, Operation- SynchRead.
    In my case as the source filename is dynamic( abc_<timestamp>.xml) hence before the SynchRead, I am using a FTP List adapter to get the filename.
    Currently,the archived file is getting name in pattern: encryptedToken_yyyymmdd_hhmmss.(e.g. wQ2c3w7Cj7Y6irWnRKqEu77_jD7kLtj6Uc0QCZIyjC4=_20121122_012453_0305)
    I need to pass the sourceFilename(which i am getting from FTPList adapter) for the archived file also.
    Thanks in advance for the help!
    Regards,
    Achal

    Hi Neeraj,
    While trying the above alternative, i am facing an issue when my source file is a .csv file. The file is getting recreated with the original filename and file content but without header.
    As per the requirement i need the original file to be recreated. The header of .csv file has the field names.
    Please let me know how should i configure my FTP adapter to read the header of the .csv file as well.
    Thanks,
    Achal

  • I have a 2 x spot colour file in Illustrator CC and need to save it as a PDF for printing in spot colour....

    I have a 2 x spot colour file in Illustrator CC and need to save it as a PDF for printing in spot colour, which option do I choose in the 'save as' menu?
    and how do I check it?
    The overprint panel is open and I can turn off the cmyk ( there are no separations for the cmyk anyway)
    Have looked at the tutorials which tell me to print as PDF7 but that utility is disabled and has been for ages.
    it is a simple need but can find no simple information so think I must be missing something!
    Thanks in advance!

    No magic required. You simply save it as PDF-X from AI. If the spot colors are based on correct swatches and tagged accordingly, they will appear as separate inks/ plates in the PDF, which you can verify in the ink manager in Acrobat. That's pretty much all there is to it and the print facility should handle this file correctly.
    Mylenium

Maybe you are looking for

  • Calling SQL Loader from Forms 4.5 using HOST command in Win2000

    One of my forms calls SQL Loader 7.3 using HOST command to load a csv file onto the database(Oracle 7.3) under Windows 2000 platform. Only after sql loader finishes its operation the control should come to my form i.e. synchronous execution. As of no

  • Air plane mode cant open facetime

    Hi i am in mexico and i connect on the wifi and i want to know if i will be charge data or money for using facetime. Also i put my iphone on airplane mode and turn on the wifi but when i try to use facetime it says face time error. Can anybody help m

  • Time Machine Back-up Duration

    I recently put a large number of gigs on my computer. Afterwards, I ran time machine to back-up the computers hard drive to an external hard drive. I ran it over night. When I awoke in the morning only 5 of 23 gigs had backed up. I let it continue to

  • Role Authorization Vs ACL in cProjects

    We do not want to use ACL (Authorization at the Project level) to grant authorization. We are looking for a way to have this authorization by roles. Not too sure if the minutest of details can be controlled by authorization objects. Of the few requir

  • Inventario fisico

    Boa tarde Srs, Sou novo em sap e estou com uma situação quanto ao inventario físico. Estou fazendo um novo inventario físico porem para alguns materiais já existem documentos ativos no sistema,estou com dificuldade de como lidar com esta situação.O s