Formguide and javascript inside a pdf

Hello,
I´m trying FormGuide. I realize that the behavior of the script inside an event in a pdf/template is different when the pdf is opened directly in acrobat reader or when is opened using a formguide (preview pdf).
For instance, if I have 2 javascript alerts on the change event of a field, only the first one will be shown when the value of that field is changed in formguide.
Another example: if at the same event I have a javascript replace funcion, when I change the field in the guideform, the event is fire as expected, but I will get an xfaxm error message...
I thought formguide would only make a mapping between the field in the flash screen with the field on the form, but that everything else would run inside the form. However, it seems formguide is "capturing" the events and script and is running them...
If this is true, how can I define something like a replace function?Also, How can I use floating fields in a pdf, that will be changed as some field in formguide changes?
Thank you

You have a number of issues that you have brought up here. This are difficult without looking at exactly what you aer doing and what script you are running. Can you post your form to [email protected]?
I will try and answer your questions:
The replace() is supported in Form Guides
All script will run in the Form Guide unless you call into the PDF directly (liek when you click the buttons to email, or print)
Floating fields are resolved at runtime and are turned into Text. They are not inetractive.
If you are trying to get script to execute in only your guide you can use:
if ( xfa.host.name == Flash ) {
script to execute.
And of course you can do the not (!=) to only execute in Reader/Acrobat.

Similar Messages

  • Protect javascript inside the PDF from de-compilation

    Hi Guys,
    I have developed an fillable PDF using acrobat, which will publish to public. some of the input field needed to be validated using some javascript.
    When I google the de-complilation pdf, I found that some free de-compilation pdf tool and easily de-compile the pdf and my javascript can be found inside the result.
    because these javascript is sensitive that I don't want it to be exposed to public, is there anything I can do to hide the javascript?

    The Reader Extension hash won't stop someone from extracting content; it can potentially make it a little harder but if you can open a file in a non-Adobe application you can always extract content, no matter what the settings are.
    DRM is the only reliable method of file-level security as it ensures only Adobe Reader or Acrobat can be used to open it. However when a secured file is running you still have access to the console, so determined snooping remains possible.

  • Extracting Base64 images embeded inside XML and Convert it into PDF using Biztalk

    Hi,
    I'm presently working in a scenario, where we will be getting huge XML Files containing Base64 encoded images. The scenario goes like this :-
    1) Client will dump the XML files with embedded Base64 images in a sFTP location.
    1) Firstly, we have to extract Base64 encoded images and the metadata from the XML file.
    3) Secondly, we need to convert the extracted Base64 encoded image into multiple pdf.
    4) Then merge the PDF's into a single file.
    5) Then the merge pdf will store to a particular location.
    5) It is presume that, the file will be of very big in size ~ 1 GB XML file, so we need to take care of the performance as well.
    The sample xml looks like:-
    <ns0:tran xmlns:ns0="http://Sample.Schemas.Record_XML">
      <tranheader>
      </tranheader>
      <item>
        <image>
          <frontimage>
            <frontimage> image 1 part 1</frontimage>
          </frontimage>
          <rearimage>
            <rearimage>image 1 part 2</rearimage>
          </rearimage>
          <frontimage>
            <frontimage> image 2 part 1</frontimage>
          </frontimage>
          <rearimage>
            <rearimage>image 2 part 2</rearimage>
          </rearimage>
          <frontimage>
            <frontimage> image 3 part 1</frontimage>
          </frontimage>
          <rearimage>
            <rearimage>image 3 part 2</rearimage>
          </rearimage>
        </image>
      </item>
      <trantrailer>
      </trantrailer>
    </ns0:tran>
    Thanks & Regards

    Do you really need to use BizTalk for this requirement? This can be done better with standard .NET code through a Windows service/schedule task/ if you want to poll,
    you can implement file watcher class and poll the file as when it arrive to SFTP folder and convert the image in base64 to PDFs.
    Another point, I don’t know why you want to “convert the extracted Base64 encoded
    image into multiple pdf” (Point-3) and “Then merge the PDF's into a single file”-
    point4. You can create a single PDF file (unless I don’t know the reason for creating separate PDF file and merge it again as single PDF file)
    Anyway, if you still need to use BizTalk, you have somes options in general:
    Option1:
    Receive the message using BizTalk receive location using passthrouhg pipeline at receive end
    Create a send port with filter for receive portname. In the send port use a custom send pipeline. In the send pipeline use a custom pipeline component which will extract the base64 content from
    the XML file, convert the base64 encoded image as PDF and send the PDF file in the send port level.
    Option 2 – this options works better if you have some process based on your
    <tranheader> record:
    Receive the message using BizTalk receive location using a custom pipeline strip off, decode and store the base64
    encoded document in a temporary store (file system). So when the message is published in message box db, the message doesn’t contain the heafty encoded64 data part, message will be light weight when its published into message box.
    Process the XML message (without bae64 encoded document) with or without orchestration where you will do processing based on your
    <tranheader> record.
    In send last moment –at send port level, retrieve the stored file from the
    temporary store (file system), convert the image to PDF (i,e, hefty processing like creation of PDFs/merging) can be done at the send pipeline level and send the PDF file
    to destination.
    Following are the guidelines you should keep in mind if you need to achieve this process in BizTalk:
    Try to avoid publishing the hefty message to message box.
    Conversion of base64 to PDF can be done only using a .NET code. So your options to do this conversion in BizTalk are either in Receive pipeline/send pipeline/ .NET helper in orchestration.
    Try not to use Orchestration as much as possible, because of heavy processing and message transmission is already involved.
    Following articles shall help you in this context:
    Dealing with base64 encoded XML documents in BizTalk
    To convert Base64 to PDF/JPEG using C# code:
    TechNet-Wiki Code: Converting Base64 strings
    to Bitmap images
    Convert Image to Base64 String and Base64
    String to Image
    Base64 encoding and decoding in .NET
    Regards,
    M.R.Ashwin Prabhu
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How to take parts of a web page and feed into a PDF template to create a PDF

    Interesting quesiton that I think was what LiveCycle was for: How can someone take parts of a web page or xml document (say by id name or a specialized tag) and feed the chosen items into different regions inside a PDF template?
    Basically, can you identify areas on a page and then tie them to place holders in a pdf template (with high res graphics say) and create a PDF?
    Please note: this is not about converting a whole webpage to a pdf, but select portions of it.
    Anyone have experiences in doing this? So far, it appears to require a toolset like LiveCycle or Adlib to utilize only selected items and not the whole page.

    The lack of answers is likely due to folks having no clue. What you have asked is not really the purpose of either Acrobat or LiveCycle, but that is not to say it can not be done. A starting point is to bring a WEB page into Acrobat as a PDF. This can be done by printing from the browser to the Adobe PDF printer, using PDF Maker with IE or FIrefox, or simply creating directly in Acrobat. Those are the normal ways to get things from a web page to a PDF.
    That said, it is not what you asked. You are asking about being able to parse parts of the web page. That is a lot more work and may not be directly possible, though with JavaScript it might be possible. I suspect that if it is possible you would require a lot of extra programming to allow the material selection. It may be the folks in the SDK sub-forum can help.
    Being I have no clue how to implement what you have asked (and probably no one else either), I can only suggest some things to look at or other places to inquire. If you think the XML of LiveCycle would help, then you might try the LiveCycle forum.
    In terms of your post, I really don't remember seeing the original, but that was right near the end of the semester and I was not checking the forum very much. There are various reasons folks may not reply, typically because they have no clue. Templates are also somewhat specialized and there are not many posts about them. My guess is that the template aspect may have had a lot of folks skip the post. In any case, I have tried to give you some thoughts.

  • I have an iPad 2, and I am sending PDF file to my iPad, via a Hotmail email. But, the PDF arrives to the iPad in Mail already opended, as a picture on the bottom of the email. Is there a way to prevent it from auto open, so I can open with iBooks instead?

    I have an iPad 2, and I am sending PDF files to my iPad, via a Hotmail account. But, the PDF arrives to the iPad Mail account already opened at the bottom of the email. Is there a way to prevent this auto-opening of the PDF. I've seen screen shots with the box, and PDF listed inside the box, but mine open automatically. I want to get them into iBooks...?

    I am having the same problem and it is even bigger.
    When opening a 1-page PDF in iBooks and sending it via mail it is sent inline as preview, but the recipient cannot open the file anymore. Also on iPad and iPhone there is no "open in" possible.
    Somehow the mail app does destroy the file. What is going wrong?

  • How to make a PDF form call Web service and return a static pdf for user to print?

    Hi all,
    Can anyone help me regarding the feasibility of using PDF forms for my following case?
    I would like to create a Dynamic pdf form. User only have the Acrobat reader. they can enter some information. Then have a submit button. when user click the submit button, it can call the web service with data. then Web service returns a Static PDF document based on data and the user can print it out. (and maybe save as separate pdf file)
    1. Is that possible to implement? Because I know PDF can call web service, but dont know how it handle when the webservice returns another static PDF document. could it able to handle the responds and open up in another acrobat reader?
    2. As I understand I need to have Live Cycle Designer to create a pdf  and make it Reader Enabled. So user can user reader to call webservice? am I correct?
    3. What minimum reader that user need to have? PDF reader 7 or above?
    4. I have a webservice serve the same purpose for web. But if I want the same web services can serve both web and PDF form. So, whatever client (PDF or Web)make the web service call, server returns the PDF document to client. Is that possible ? Do I need to make any changes on web service?
    5. Do I need to get any other Adobe server product? (other than Live Cycle Designer )
    Thanks a lot

    We have done a similar approach in the past and yes, it can be doable.
    1. Is that possible to implement? Because I know PDF can call web service, but dont know how it handle when the webservice returns another static PDF document. could it able to handle the responds and open up in another acrobat reader?
    Srini: We have developed a Servlet to talk to Webservice. Based on the Webservice response, the Servlet, prepares the Byte stream and sends it to Webbrowser to display as a PDF. The PDF data was submitted to Servlet in XML format.
    But if you do not want to use the above approach, then you have to use the Workbench Process.
    Submit the PDF data to a Workbench process and the inside process, execute Webservice Service with the data. Once the response is received, prepare the data XML and render a PDF with it.
    To do this, you need LiveCycle Server and Reader Extensions server component.
    2. As I understand I need to have Live Cycle Designer to create a pdf  and make it Reader Enabled. So user can user reader to call webservice? am I correct?
    Srini: If you want to use the Servlet, you can Reader extend the PDF with Acrobat.. But if you want to submit the data directly to Webservice, then you need Reader Extensions server component.
    3. What minimum reader that user need to have? PDF reader 7 or above?
    Srini: Not sure but Reader 8 and above should work.
    4. I have a webservice serve the same purpose for web. But if I want the same web services can serve both web and PDF form. So, whatever client (PDF or Web)make the web service call, server returns the PDF document to client. Is that possible ? Do I need to make any changes on web service?
    Srini: If you use the Servlet approach, then you can re-use the same webservice. But if you want to submit directly to the same webservice, you may need to change it to suit your data XML.
    5. Do I need to get any other Adobe server product? (other than Live Cycle Designer )
    Srini: If you use the Servlet approach, you do not need any server component but other approach, you need Livecycle Server and Reader Extensions server component.
    Thanks
    Srini

  • SSO and JavaScript

    Hi all,
    does any one of you know about any restriction or any other issue involving SSO and JavaScript?
    We have a web app in an OC4J instance, which uses JSP and JavaScript.
    When SSO is disabled for the application, everything goes well. But when SSO is active, the page loads a lot slower, and the IE browser always shows the error icon when any component tries to execute Javascript.
    Any ideas about this issue?
    Oracle AS 10g (9.4.1)
    Win 2000 SP4
    IE 6.0 SP1
    Thanks a Lot in advance.
    Have a nice day.
    Jaime

    It is simpler to do from server side as follows. Place below line
    inside Page_Load event of any portal component:
       Write(this.Request.Cookies.Get("MYSAPSSO2").Value);

  • Can you force a link inside a .pdf to open the "linked to" document in a new window?

    When I have a link inside my .pdf document - linking to another .pdf document or to a Word document - how can I force the linked-to document to open in a new window?
    I have a web site (business internal, so unfortunately I cannot point to it).  My HTML menu has links to .pdf documents - no problem.  However, once I open those .pdfs, they contain links to other .pdfs and to Word documents.  Clicking on these links, which reside inside my .pdfs, opens the "linked-to" docs in the same page.  How can I force them to open in a brand new frame?
    All of my .pdfs were originally created in Word, and in the Word versions, the links DO open into new frames.  I am not sure why, when I convert them to .pdfs, they lose this feature.
    Can anyone help?

    Hi Magenta,
    Would you mind reposting this question over on the Acrobat boards?  You've posted in the AIR forum and you'll have better luck with this over there.
    Thanks,
    Chris

  • Acrobat 9 Pro and straight .swf to PDF conversion

    I have an electronic document that is several .swf files, one
    file for each document page. Using cutepdf I can put each file in
    firefox and then print the the page to pdf. This is very tedious
    since I have 1000+ pages. I would prefer to speed this process up
    with AA9.
    I have Adobe Acrobat 9 Pro Extended. When I try to create a
    new PDF from the .swf file I get some dialogue that treats the .swf
    as embedded content. This puts an annoying play button at the
    bottom of the converted page and makes it incompatible to view in
    my iPhone or other handheld devices. It would seem that AA9 treats
    the .swf as .swf and doesn't convert it to .pdf like cutepdf does.
    I have to believe that AA9 can ignore the media type of .swf
    and straight convert the content in the .swf to .pdf without
    treating it like I want to embed it as a flash file inside a pdf.
    How is this done? Thanks in advance.

    Thanks for your reply. This problem has yet to be resolved
    sadly. The play button isn't a huge deal as that the document wont
    convert into straight PDF. I finally gave up and decided to batch
    convert all of the files and just deal with the embedded content
    angle AA9 takes. Sadly this was also a failure since every file
    that was converted (1200+) wants me to confirm the embedded content
    settings. Very annoying. Any help on these subjects would be
    greatly appreciated.

  • Links (urls) inside a pdf document are not enabled by the New firefox pdf preview feature but are in Chrome & IE

    The new pdf preview feature in firefox desktop does NOT seem to activate any links (urls) inside the pdf meaning they are no longer clickable.
    Is anyone else experiencing this problem.
    I send out product information using pdf's with clickable links inside (as do lots of businesses) and this loss of clickable links functionality is a problem.
    I also tried the same pdf files in IE and Chrome and their inline pdf previews keep all links fully working.
    I know the pdf preview in firefox can be deactivated and the adobe reader can be used instead but in reality lots of people won't know how to do this or won't be troubled to find out how and will just move on.
    Does anyone know if this feature is going to be fixed or supported or is it a deliberate security feature.
    Thanks.
    JP.

    Hey JPEdwards,
    The PDF.js team is still hard at work on the built-in viewer. It looks like there is already a bug on file for this and they are aware of it:
    https://bugzilla.mozilla.org/show_bug.cgi?id=821599
    Please don't post in the bug if you are just confirming that you've seen the problem too. That clutters the tickets ;)

  • How 2 search inside a PDF document using the firefox internal PDF reader

    Cannot find any way to do a text search inside a PDF document when it is displayed by the builtin PDF player in Firefox.
    If there is a way, how is it done?
    If there isn't a way, it seems an obvious enhancement.

    son of a gun. I've always searched in firefox by hitting slash and typing the search term, but that doesn't seem to work in the pdf reader. I guess, if I had searched for key bindings I coulda figured that out for myself.
    thanks!

  • Looking for a way to find out the x,y coordinates of a string inside a PDF

    Hi!
    I'm looking for a way to find out the x,y coordinates of a string inside a PDF (with free java api's only)
    I got a pdf, and a string to find inside it, what i need to do is to get this string x,y position inside that pdf....
    If any one knows of such, plz let me know...
    Thanx ahead
    Daniel.

    vedmack wrote:
    Hi!
    I'm looking for a way to find out the x,y coordinates of a string inside a PDF (with free java api's only)
    I got a pdf, and a string to find inside it, what i need to do is to get this string x,y position inside that pdf....
    If any one knows of such, plz let me know...
    Thanx ahead
    Daniel.AFAIK, a string of text does not have an (x,y) location inside a PDF file. The location is exists on your screen, and will differ whenever you adjust the resolution of it. Text can have a location when it's stored as an image though, but than it's really the location of a certain number of pixels (not necessarily a string!).

  • Pdf javascript in mobile pdf reader

    Hello all,
    I have embadded some javascript in my pdf and the javascript works in PC adobe reader. I find that the javascript does not work android adobe reader, can i ask how can I preview the pdf open in android adobe reader or I can write some javscript for android adobe reader?
    for example, in PC, the javascript is this.closeDoc();
    what is the javascript in android adobe reader?
    Many Thanks
    Sunny

    With Adobe Mobile Reader some JavaScript is supported but not all.
    So testing if very important to determine if your script will work or not.
    Also you need to be aware that not all apps on mobile devices support JavaScript so again testing by individual app is needed to determine if your script will work or not.

  • Open a PDF inside a PDF....

    Hi people.
    I'm making my portfolio in this program that i don't really much how to use, but everything it's ok except one thing....
    I was trying to make a menu where you can click and open another PDF file. Ok that works, but when I click, the other file opens and the  PDF with the portfolio close up, and i want to the option let you go back to the portfolio again. I want to know if is a way to open the second file in a different PDF window, or if it doesn't have a solution in which similar format can I let the second pages. Thank you

    The only way to put a PDF inside another PDF that I know of is to make a PDF Portfolio. This feature is available in Acrobat 9 and Acrobat X.
    You should ask about it in the Adobe Acrobat forums. Here's probably the most relevant one: Creating, Editing & Exporting PDFs

  • Pdf in a window inside another pdf?

    Hello,
    Im comfortable using the multimedia tool and like the way it works inside a pdf.
    So does anyone know how to make it so that inside one pdf there would be a window that prewievs another (attached or linked) pdf in a certain area? So just like linking a movie or a 3d file but for linking another PDF-file.
    Thanks!

    You may find this cheesy, but...
    Buttons in Acrobat are usually part of the form tool, but since buttons can be any size, you can “fake” a pop up window. First, a designer creates a one
    page popup in InDesign and exports it as a PDF. Then, using the Button Tool on the Forms Palette, the designer creates a button with the popup PDF as the button’s icon. That button is set to hidden. Next, the designer creates a visible button that when “pushed” makes the hidden popup visible.
    The file I'm attaching came from a demo I did a couple years ago. You can use it as an example of what you might need.
    Hope it helps.
    Greg Ledger
    www.macproductionartist.wordpress.com

Maybe you are looking for

  • Error while creating first database instance

    Hi, after installing MaxDB i got the following message:  "ERROR in 'C:\Program Files\sdb\programs\pgm\dbmcli -R "C:\Program Files\sdb\MAXDB1"  -R "C:\Program Files\sdb\MAXDB1" db_create  -a MAXDB1 DBM,*** .ing!1' ERR -24996,ERR_PARAM: wrong parameter

  • How get a correct CSV file

    Hi, I've this table: CREATE TABLE TAB_BW ( COD VARCHAR2 (2), COD_ID VARCHAR2 (20), DESCRIPTION VARCHAR2 (64), AREA NUMBER); with these data: INSERT INTO TAB_BW ( COD, COD_ID, DESCRIPTION, AREA ) VALUES ( '00', '000099', 'MY HOME', 21.654); INSERT INT

  • Visual Studio Like IDE for AS?

    I don't like feeding the big green monster (microsoft) more than I have to but I think Macromedia (adobe?) should make programming with action script more like programming in visual studio 2005. I program for fun and to be honest, its not that fun wh

  • How to use deploy tool in AIA

    Hi , I am using Tokenizer tool. I have followed the following link http://blogs.oracle.com/learnwithpavan/2009/09/deploy_using_the_deploy_tool_u.html. I am using ANT 1.7.0 comes with AIA installation. export AIA_HOME=/opt/webapps/oracle/product/AIA e

  • Charged twice rung loads not sorted and more billi...

    hi there im fairly new to this only about a month now but my first bill was taking from my bank earlier than i thought so was returned so rang next day and paid over phone then a few days later taking out of bank again!!! i have rang a number of time