Using Fields from PDF when saving

Im looking on how to use fields in a pdf form when saving the form.
ex. Incident Report
Staff open up the form. Put in the information. Want it so when they save it puts the clients name and date in the save as. So they open Incident_Report.pdf when they save it would be Incident_Report_ClientsName_Date.pdf Yes the staff could type that in that way but want to make it as easy for everyone involved.

So let's say you have the following fields in your file:
Incident_Report
ClientsName
Date
You can then add this code to the file's WillSave action (under Tools - JavaScript - Set Document Actions):
var newFileName = this.getField("Incident_Report").valueAsString + "_" + this.getField("ClientsName").valueAsString + "_" + this.getField("Date").valueAsString + ".pdf";
app.response("Please copy the text below and use it as the new file-name:","", newFileName)
Of course, you can adjust the message to the user, and even the format of the file-name, although I've used the format you specified.

Similar Messages

  • Copy all fields from pdf to word

    copy all fields from pdf to word

    Try using shift/apple/4 - gives you a cross-hair selector to grab part of the screen - saves as Picture1.png to your Desktop then drag that into Word.
    Or, /Utilities/Grab

  • Images fail to appear in pdf when saving as pdf in formscentral

    Images fail to appear in pdf when saving as pdf in formscentral, am I doing something wrong?
    Image is saved as a jpg and appears on the Formscentral form but is not there on the pdf

    Sorted it out the image was in CMYK format, saved it to RGB, and it worked

  • Need to get the values from "Signed" field from PDF form.

    Hi,
    This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
    Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
    Thanks & Regards
    Dinesh

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • Retreiving and setting fields from pdf

    Hi Everyone,
    I hope that you may be able to help. I'm working on putting together an extention to my program to allow users to load a pdf file from a database, and also save what the user has entered into the pdf, into a database. I started out using the ActiveView sample app and have gotten it to load a seleted pdf into my app. I am currently trying to get the fields from the pdf. I am using the FormsAutomation sample as a reference. Here is some code :
    This funtion is used to open the pdf (just like in the ActiveView sample)
        Public Sub OpenChartFile(ByRef Filename As String, PatientId As String, ChartId As Integer, isNew As Boolean )
            Dim ok As Integer
            Dim fIndex As Short
            ' change mousepointer to an hourglass
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
            ' change form's caption and display new text
            fIndex = FindFreeIndex()
            Document(fIndex) = New frmPDFView
            Document(fIndex).PatientId = PatientId
            Document(fIndex).ChartFileId = ChartId
            Document(fIndex).ChartFileName = Filename
            Document(fIndex).isNew = isNew
            Document(fIndex).Tag = fIndex
            Document(fIndex).Show()
            Document(fIndex).Text = UCase(Filename)
            Document(fIndex).MdiParent = gShell
            ' open the selected file
            AcroExchAVDoc(fIndex) = CreateObject("AcroExch.AVDoc")
            ok = AcroExchAVDoc(fIndex).OpenInWindowEx(Filename, Document(fIndex).Handle.ToInt32, AV_DOC_VIEW, True, 0, PDUseBookmarks, AVZoomFitWidth, 0, 0, 0)
            ' See IAC.bas and the Acrobat Viewer IAC Overview for information on the
            ' OpenInWindowEx open modes
            If Not ok Then
                MsgBox("Can't open file: " + Filename)
                Document(fIndex).Close()
                System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
                Exit Sub
            End If
            FState(fIndex).Dirty = False
            Document(fIndex).Show()
            Document(fIndex).FillChart() 'Used to fill the pdf from the DB
            ' reset mouse pointer
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
        End Sub
    Here is were I try and get the fields which is located in the PDFView form
        Public Sub FillChart()
            If Not pisNew then
                formApp = CreateObject("AFormAut.App")
                acroForm = formApp.Fields  '<-----******Errors here, "No document is currently open in the Acrobat Viewer"
                FillChartData( pPatientId,acroForm,pChartFileId, Me.tag )
            End If
        End Sub
    Here is where I plan to fill the pdf file (Located in a module file): I
    Public Sub FillChartData(PatientId As string, acroForm As AFORMAUTLib.Fields, ChartFileId As Integer, FormIndex As integer )
        Dim field As AFORMAUTLib.Field
    Try
        field = acroForm.Item("PatientName")
    Catch ex As Exception
        MsgBox(ex.Message, MsgBoxStyle.Critical, "ModChartSupport.FillChartData")
    End Try
    End Sub
    Is it possible to get the list of fields in the current setup using the ActiveView forms? If so, what am I missing? In the FormAutomation sample it seems to get the fields this way:
            avDoc = CreateObject("AcroExch.AVDoc")
            Dim file As String = System.Windows.Forms.Application.StartupPath & "\..\..\..\..\TestFiles\FormsAutomation.pdf"
            bOK = avDoc.Open(file, "Forms Automation Demo")
            'If everything was OK opening the PDF, we now instantiate the Forms Automation object.
            If (bOK) Then
                formApp = CreateObject("AFormAut.App")
                acroForm = formApp.Fields
            Else
                System.Runtime.InteropServices.Marshal.ReleaseComObject(avDoc)
                avDoc = Nothing
                MsgBox("Failed to open PDF Document. Aborting...")
                End
            End If
    The OpenChartFile function has already created the avDoc object for the form, so I think I'm alright there. What am I missing? Thanks for any help you can provide.

    So let's say you have the following fields in your file:
    Incident_Report
    ClientsName
    Date
    You can then add this code to the file's WillSave action (under Tools - JavaScript - Set Document Actions):
    var newFileName = this.getField("Incident_Report").valueAsString + "_" + this.getField("ClientsName").valueAsString + "_" + this.getField("Date").valueAsString + ".pdf";
    app.response("Please copy the text below and use it as the new file-name:","", newFileName)
    Of course, you can adjust the message to the user, and even the format of the file-name, although I've used the format you specified.

  • How to keep the input field from PDF Form to RTF

    Hi,
    I'm looking to keep the input fields from my pdf form document to Rtf so I can use them in my Rtf document.
    Regards,
    Alan

    Good day Alan,
    I'm afraid that's not possible as form fields in a PDF file have no equivalent either in a Word format (.docx/.doc) or within the Rich Text Format (.rtf).  That data is simply stripped during the conversion as there's no equivalent available.
    Kind regards,
    David
    Acrobat Community Manager
    Adobe Systems

  • When is it important to use "recompress all frames" (when saving)?

    When is it important to use / check the box "recompress all frames" (when saving as quicktime movie)? And why?

    If you've rendered a sequence and want it to re-render the video into the same codec as the sequence. You almost never need to do it.

  • Use a Excel template when saving a csv export

    Hi!
    I wonder if it is possible to use an excel template when export data from a report to excel? If so, is there anyone who have an example how to do this?
    Regards
    /Ulf Jonsson

    Hi Ulf,
    CSV is a generic standard for exchanging tabular data in flat files.
    You can not pass any processing instructions through CSV, for formatting or dynamic behavior in Excel.
    SYLK is a text-based interchange format for spreadsheets; it supports formulas, borders, fonts, point sizes, etc. SYLK is supported by Excel and other spreadsheet packages. SYLK is the RTF of spreadsheets. The problem with SYLK is that it is not well documented.
    Maybe you need to look after a license of Oracle BI Publisher for your Apex environment to do more sophisticated publishing.
    I have no experience with that.
    Regards,
    Martijn

  • Hyperlinks missing from PDF when using Adobe Printer.

    Hi,
    I am not sure if this is in the correct spot or not. I have a group of users that are ALL experiencing the same problem. When they generate the PDF of their work using the Adobe Printer, ALL of the Hyperlinks in the document are gone (the text remains). This has been working up until August 20th of 2014. They are using Word 2010, and Framemaker 9 to create the source, and Acrobat Professional 8 for the generation of the PDF. I have used Libre Office Write to test it with and I get the same result, however if I go in to Acrobat and create a document and add a hyperlink it will work.
    Anyone have any thoughts as to what is wrong?
    Thanks
    --Mike

    Let us get a few items out of the way first.  How and what does the PDF generation:
    - The Adobe PDF Printer doesn't generate links EXCEPT in a very special case where the PostScript file has special markup embedded in it called PDFMARK.
    - Both Adobe Acrobat and Adobe Reader have a preference that will read the text of a PDF file and dynamically create hyperlinks from that text that are clickable. This preference can also be turned off.  Check it to make sure that for some silly reason this hasn't happened on your users machines.
    - Microsoft Word has a Ribbon at the top called "Acrobat".  Use this Ribbon and the Create PDF button in it to create PDF files with hyperlinks
    - Microsoft Word also has the option of Saving as PDF with a Microsoft Addin that has nothing to do with Adobe.  It's somewhat functional in the hyperlinks department but Acrobat's Ribbon is much more fully featured.
    - FrameMaker is a bit different because it actually uses that special markup language I mentioned previously called PDFMARK and then runs it through the Adobe Acrobat PDF Add-on (a.k.a Adobe Acrobat Distiller).
    - Libre Office uses it's own mechanisms to create PDF if I remember correctly.
    My Thoughts:
    Figure out what process your users have been using if it is not a documented process.  Document that process.  Train your users as they come to the job on exactly how you want the PDF files generated. 

  • Name of PDF when saving

    Hi,
    I created a pdf and display it in WD4A. Everything works flne but when my users want to save the PDF locally with the standard adobe save button, the file name by default is "F.pdf".
    Thats in deed not a very meaningful name and I asked myself where it come from.
    But what I would like to ask you guys is whether and especially where and how i can set the PDF name for saving.
    In the best case it would automatically get the e.g. something like this "[invoicenumber]-[customer]-[currentdate".
    I have neither found anything in the parameters of the function moduls i use nor in previous post.
    Thanks!

    Hi,
    yes, I will try today or tomorrow to find a corresponding method in ABAP for such an byte stream operation.
    Your suggestion made me thing about it and maybe I also find a good hint in "offline forms" if I cant implement it in ABAP like you did in Java. Maybe Java is more powerful than ABAP. Wanted to learn it already but could never get an understanding how these WD-Java components get transported and how the whole stuff needs to get setuped with the development environment etc... But maybe I should rethink about it, looking at all the possibilities WD-Java offeres.

  • Does Preview compress PDFs when saving?

    Hi.  My scanner can group separate scans into a single PDF on its own, but it is significantly slower than scanning documents separately and merging them with Preview. 
    Since scans are essentially saved twice when going the "merge with Preview" route (once when scanned, again when merged), I'm curious to know whether Preview compresses PDFs with each save.  If so, I'd like to know how lossy this process is.  Anyone know?
    Thanks in advance for any help / info!

    Preview suck!!! Please for your own sanity use acrobat to edit PDF. Get it from adobe.com

  • How do I use my own templates when saving DITA map as FM 11 book w/ components?

    I have updated the ditafm-output.ini file in the following places:
    [BookWithFM-Chapter]
    [BookWithFM-TOC]
    [BookWithFM-Index]
    [BookWithFM-ListofFigures]
    [BookWithFM-ListofTables]
    [BookWithFM-BookTitle]
    In each I used the following information for my Template file path:
    Template=$STRUCTDIR\xml\DITA_1.2\app\technicalContent\template\Book_Templates\templateChap ter.fm
    However, when I saved my DITA map as a FM 11 book with components, it still used the standard DITA templates, rather than my own templates.
    What am I doing wrong?
    Marsha

    The program can't start because MSVCR80.dll is missing from your computer
    Many thanks. Rather than the Apple document, I currently recommend using the instructions from the following user tip with that one:
    Troubleshooting issues with iTunes for Windows updates

  • Auto-generate form fields from PDF in LiveCycle?

    I have a PDF created with InDesign that is destined to be an interactive PDF form. For previous versions I have imported it into Acrobat and had it generate the fields based on the text columns I layed out in InDesign.
    I wanted to try for more function in my form, so I thought I'd use LiveCycle, but I can't figure out how to get it to automatically create form fields when I first import the PDF. Is this not something that LiveCycle does, or am I just missing something?

    Hi,
    I don't like automatically generated PDFs.
    But sure you can create this with the LCD. The only thing is that the acrobat recognize lines (for example) and place a textobject to this location. The LCD not really.
    Open the LCD
    Then select "New Form".
    Then select "Import PDF".
    Then select "Create"
    Then the software will try to recognize everything..
    My opinion is - THE BEST WAY to create a formular is this to create by myself in the LCD step by step. Then this software has so many possibilities...for really good PDFs.
    Kind regards Mandy

  • Remove button from pdf after saving

    Hello, in my PDF form, I have a button. This button has the following script that I got via this forum, great!
    for (var i=0; i<this.numFields; i++) { 
        var f = this.getField(this.getNthFieldName(i)); 
        if (f==null) continue; 
        f.readonly = true; 
    app.execMenuItem("SaveAs")
    So what it actually does, is to make all form fields "non editable"and show a save as button after that so users can save the filled in PDF.
    But since after saving the PDF is read only, how can I make it in this way that the "button save as" with the script above, is not showing anymore in the generated PDF. This is a read only PDF now, so this button is no longer of use to show and also not to print.
    How do I do this in acrobat pro.
    Thank you all!

    Add this at the end of the code:
    event.target.display = display.hidden;

  • Buliding a SELECT in PSP using fields from html form

    Hi everyone, first of all forgive me my poor english.
    I'm making "CV Base" in PSP as a school project. And I've got a search html form like this (simple version):
    select list: Profession
    text field: Age
    And my question is... How to build a select in psp which will parse only given parameters? For example. I'm looking for C Programmer in any age so i select C Pogrammer from the list and leave afe field blank. So the SELECT should be sth like this: select * from Person where Profession like 'C Programmer'; But in another search i need a programmer who is 25 years old... So select has one more WHERE... I'm sure You all know what I mean
    Please help me.
    Martin

    Hey, i wanna open cursor and don't know how to do this. Got this:
    <%@ plsql parameter="f_wyk" type="varchar2" default="NULL" %>
    <%! sel_str varchar2(1000) := 'SELECT imie, nazwisko, wiek, ulica, nr_domu, nr_lokalu, kod_pocz, miasto, nazwa_woj FROM Uczelnia ucz, Stanowisko stan, Jezyk jez, Wojewodztwo woj, Wyksztalcenie wyk, Adres adr, Osoba os, os_wyk ow, os_jez oj, os_sta ost, os_ucz ou WHERE nazwa_wyk LIKE :1 ...
    <% OPEN cur FOR sel_str USING 'pod%'; %>
    <% LOOP %>
    <% FETCH cur INTO rosoba; %>
    <% EXIT WHEN cur%NOTFOUND; %>
    <%= rosoba.imie %>
    <% END LOOP; %>
    <% CLOSE cur; %>
    and when i put <% OPEN cur FOR sel_str USING *'pod%'; %>* it works but i'cant use parameter <% OPEN cur FOR sel_str USING *<%=f_wyk%>*; %>
    I have
    Projekt\psp>loadpsp -replace -user system/system szukaj2.psp
    ORA-20006: "szukaj2.psp": compilation failed with the following errors.
    "szukaj2.psp", line 100, pos 31: PLS-00103: Encountered the symbol "<" when expecting one of the following:
    ( - + case in mod new not null out <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternatively-q
    please help

Maybe you are looking for

  • Where should I issue this command

    Hi all, I'm configuring a logical standby database (Oracle 10g R2 on Linux 4.5). In the steps, I should convert to a Logical Standby Database and thus the following command should be issued: ALTER DATABASE RECOVER TO LOGICAL STANDBY db_name;My questi

  • How to use Unicode font in a AWT compoment?

    Dear, I am a new on Java. I want to use Unicode font in AWT/Swing but I cannot. I use JDK 1.4.1 & JBuilder 7.0. Please help me. Thanks, Cuong Ha.

  • How do I talk to a human at Microsoft

    I have been attempting to find a phone number, connect using the web or IE9 about security, viruses, malware, cookies and other topics but am getting the cyber run around.  Can someone at Microsoft please call me or tell me where to find a phone numb

  • Same machine, running bootcamp, photoshop runs great on windows 7 but laggy on Mac OSX mavericks

    Dont know why this is happening but on mac OSX mavericks photoshop CS6 and photoshop CC 2014 run laggy. 2014 is even worse than CS6. I tried both Yosemite and downgraded to mavericks to see if it would help and it didn't. If I draw a rectangle on a l

  • RV042 email & time

    I am trying to set up a new RV-042. I have three questions: 1. I want to enable email notification of logs but my SMTP server requires authentication (as most do these days). I can't find anywhere to enter the authentication information into the rout