How to click a button on PDF inside iframe - pdf

I have a fillable pdf on my website displaying inside an iframe. I created a Save button at the end of it through adobe acrobat professional, it is suppose to trigger Save As action ... However I cannot click on that button. Any suggestions?

Related

How to click on dropdown list items through Selenium in VBA macro?

I am trying to create a macro to download a file from a web page. I have coded the login and navigating to main download page however, unable to get codes to click on a drop-down menu on a web page. I need to click on 3 dots then click on Download xlsx to start downloading the file. I can not proceed to rest of the codes until file is downloaded. Here is the link to HTML properties of this dropdownlist
obj.FindElementsByClass("ant-dropdown-menu-item").Click
I had figured out the solution. I had to click on the blank space to get that drop down buttons appear. Then clicked as usually. I got the element path form Chropath chrome add on and used xpath.
Obj.FindElementByClass("insight__header").Click '-----------This clicks on blank space to show 3 dots.
Obj.FindElementByXPath("/html[1]/body[1]/div[1]/div[1]/div[1]/div[1]/div[3]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/header[1]/span[2]/div[1]/button[1]/i[1]/*").Click '---------This cicks on 3 dots and displays the menu.
Obj.FindElementByXPath("/html[1]/body[1]/div[1]/div[1]/div[1]/div[1]/div[3]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[3]/div[1]/div[1]/ul[1]/li[4]/span[1]").Click '---------This clicks on Download xlxs button to start downloading the file.

can we submit PDF form without Submit button?

can we submit PDF form without Submit button?
Any javascript code/other alternate is available?
Currently I have PDF form without Submit button.
You will need a trigger to submit.
PDF/Acrobat has a series of possible triggers, such as Button, but you might look at links or bookmarks.

How to Create a Button to Upload documents to a document library (Sharepoint 2010)

Need to link via a button to the Upload.aspx page. I want the "upload document" page to open when I click a custom button (pic).
You can add a button(pic), and on click call the bellow function
NewItem2(event, "http://<Web>/sites/sitecollectionName/_layouts/Upload.aspx?List={EC8746E1-77F4-4B60-B50D-9427E0C0BE57}&RootFolder=")
please change the guid with your document library guid.
This will open "upload document" page in popup where you can upload documents.

PDF creation with page refresh

I have a page with a viewPanel and a dialog. When an item in the viewPanel is clicked, the dialog opens, prompting the user to make changes to that item, and offering them the option to generate a report of the item in PDF format.
At first, I tried putting the PDF creation onto a button, as described here: http://www.eknori.de/2011-10-25/xpages-to-pdf-with-itext/ However, whenever the button is pressed, I get a "NotFoundError: DOM Exception 8" which seems to stem from the dojo JS. So currently I have an alternative whereby the button simply sets some sessionScope variables and opens a pdf.xsp XPage, where the variables are read back and the PDF is created.
The PDF gets created correctly, but it also means that the page that the user is on won't be refreshed to display their new change in the viewPanel. I've tried adding page redirects at the bottom of the XPage which creates the PDF, but with no luck.
So, how can I create a PDF and prompt a user to download it, but also refresh the page that they are currently on?
Are you isseuing an partial refresh on the button to hide your dialog and to execute the code for pdf generation? If so you I think that there is your problem. What you could do is to do a partial refresh on the onClose() method of the dialog to refresh the viewpanel. In the clientside onunload method you could open a so called xAgent which renders the pdf for you in a new window (window.open(pdf.xsp?docid=xxx). Take a look here: NotesIn9: 039 Creating PDF’s with XPages Part 2
Of cours the problem with this approach is that when you have a button / image in yoru viewpanel row that displays if the report has been created is not shown because the xagent runs after the / during the time the viewpanel row is being refreshed.

Can a PDF fillable form post itself to an HTTPS URL?

I am building a webapp that will display PDFs. The PDFs have fillable forms. Instead of making the user save the form, and then re-upload it to the webapp, the idea is to adapt the PDF such that it can POST itself (when the user clicks) from inside the browser to some HTTPS endpoint when the user is done.
Is this doable? If so, how? If not, any suggestions? Thanks.
Yes, there is an option (action) that allows pdfs to post themselves. The steps are as follows:
List item
Open Adobe Acrobat Pro
Select the button tool
Add submit form button
Add the url and how you want the form to be submitted. You're done.
The warning shown when the user clicks the "submit a form" button.
This can also be done in Adobe LiveCycle.