PDFtron close a tool when doing Frame.GoBack() - pdf

Im using PDFtron on a windows store app project.
I have a page with a back button and a pdf viewer where i can edit the pdfs.
When im editing a pdf i have a tool bar with options like the ones in the samples, but i have a issue when i choose a Free Text tool and start writing on the pdf, if i press the back button while the Free Text tool is active ( the cursor is bliking) the text i wrote appears in the screen on the next page i navigate to.
How can i solve this?

The TextBox in question is part of the PDFViewCtrlTools that are used to create annotations. It is shipped with the sample application and is fully open source.
The TextBox is inside a popup, positioned to align itself on top of the PDFViewCtrl in the position where you tapped.
This TextBox needs to be closed before you go back. It is quite easy to do so by calling ToolManager.CreateDefaultTool(). In general, I would recommend taking a look at the samples and see what they're doing when the user tries to navigate away from the page.
Everytime you navigate away from a page with PDFViewCtrl, the ToolManager should call CreateDefaultTool so that whatever current tool is active (in this case the FreeTextCreate tool) can close itself and clean up.

Related

How to implement a pop-up window when hovering on a URL link

I'm relatively new to Cocoa application. In my application (MacOS), I already mark the text if it contains image url link. What I'm trying doing now is that when the mouse hover (without clicking) on the link, the application will open an NSPanel (sorry, if it's inaccurate) and show the content of the image url. Also, the panel/window will be closed automatically when mouse move out of the text.
I've tried something such as "floating window/panel/quicklook", but the search result isn't close to what I want. Could anyone please give me some keywords so I can try to find the solution by myself? Thank you.

Any way to make a simple page link in Adobe Acrobat?

So I am using Adobe Acrobat Pro DC and want to create a link to another page in the PDF. Is there any way to make a simple "go to page X" link without having to scroll though hundreds of pages to get the page manually? I want to be able to create a link to go to a page number with Inherent Zoom, but so far the only way I have found to do so is to create link, scroll all the way down to the page, and then edit the link after the fact. Surely there is an easier way to do this?
The link dialog is modal but the destination dialog box is non-modal. Just draw out the link, select "Go to a page view", hit the "Next" button. When the "Create go to view" dialog pops up, type in the page number you want in the main toolbar, set the zoom you want then hit Set Link.

Mouse event disturb by other activities on the screen - Excel-VBA

Context : I'm using some mouse events in excel-vba to interact with another software. My mouse is moving and clicking at different places and everything is working well. Meanwhile, the goal of these instructions is to ask my other software to open a pdf file. I am working on 2 screens; my software is on one screen and my pdf are opening on the other one.
Issue : When the pdf file opened, it disturbs the activity of my mouse on my first screen. Consequently, it's not responsive when my mouse continue to click.
Is there a way to keep my first screen active whatever is happening on the other one?
Thank you in advance for your answers!

Copy text to an external program, click somewhere on the screen, then save a screenshot

I picked vb.net for this question since it's the only prgramming language I am fairly familair with, but if C++ or something else is more suited for this, I am willing to learn something new.
What I am trying to do is:
Retrieve text from database (this already works in vb.net) and copy it to clipboard
Switch primary screen to the external application I want to work with (example: word or open office)
Emulate key-press Enter
Paste text and hit Enter again
Emulate key-press Ctrl and then emulate a click on a pre-defined spot on the screen (like 500pixels from left, 740pixels from top).
Save screenshot, using a second value from the database as the filename (the naming part should be easy)
Emulate another click on another pre-defined spot
Repeat for next text in database.
I wouldn't know where to start, though. I guess the most important part of what I'm trying to achieve is; switching focus to an external application and emulate keypresses and mouse clicks on it.
use http://www.autohotkey.com/
write a console app to get the value from the database
1 - get autohotkey to run the console app and put the return into the clipboard
then continue as described in your list.

flex 3 screenshot of the scene

i want to snapshot of the flex scene and save it as a image. It likes printscreen button and paste it to paint and save
there will a button save it to desktop and when pressed it, flex will save the screenshot of scene to the desktop, i searched on the net but couldn't find a working code
It looks like there is a way to do it, but it requires some serverside work. Basically the data is sent to the server and the server saves it.
What you would probably want to do since you want the user to have the screenshot is create the files on the server then have it open a web page where they can download and save it.
more information is here http://www.boyzoid.com/blog/index.cfm/2007/9/17/Doing-screenshots-in-Flex-and-sending-them-to-ColdFusion