Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
Shengyao_Chen@adobeforums.com #1
Duplicate AVDoc for the same PDDoc
Is it possible to duplicate an AVDoc and show it in an external Window? According to API Reference, „“Starting with Acrobat 7.0, it is possible to have multiple windows open on the same document.“ But I found no API that can do that. If I use AVDocOpenFromXXX() to create a new ADDoc for an opened PDDoc, I get always the same AVDoc returned.
Alternatively, I can simulate a MenuItem „NewWindow“ button click to create a second AVPageView for the same PDDoc and put it into an external window. However, in this case, Abode Acrobat treats it like the one created within the application. The external window is listed as MenuItem under Menu Window. Also, I get problem, if I click “Revert” MenuItem.
Does Adobe PDF library provide a solution on this issue? Can I you IAC to cope with this problem?
I’m developing a Plugin with SDK 8 for Acrobat 8.
Thanks.
Shengyao_Chen@adobeforums.com Guest
-
pdDoc.Save()
I am having trouble saving a pdf. I'm using the SDK in C#. My project just grabs a bunch of pdf files and merges them. I have added a COM... -
AcroExch.AVDoc.FindText()
Hi, there Does anyone have any experience of the FindText() function? I was hoping to use it together with acrApp.MenuItemExecute "NewBookmark" to... -
Printing document using AVDoc.PrintPages
Hello, I have used AVDoc.PrintPages to print PDF pages, it worked all fine until I upgraded from Adobe Pro version 7 to Adobe Std version 9. When... -
PDDoc.Save problem
Example of VBScript: ==Script begin Function Execute(infile, outfile) On Error Resume Next Dim avdoc, pddoc Dim saveOk Set avdoc =... -
PDDoc.Close() fails
I have a problem where at random (more so than not) times the PDDoc.Close() method fails. This leaves Acrobat in a state where it keeps the file... -
Leonard_Rosenthol@adobeforums.com #2
Re: Duplicate AVDoc for the same PDDoc
What do you mean by "external window"? You can certainly do the equivalent of "New Window" from a plugin - is that all you wish or is there more?
Leonard_Rosenthol@adobeforums.com Guest
-
Shengyao_Chen@adobeforums.com #3
Re: Duplicate AVDoc for the same PDDoc
Hi Leonard,
“External Window” is a MS Window outside the Acrobat application window. Acrobat standard plugins: “Pan and Zoom Window” and “Loupe Tool” are able to open such kind of window based on the origin PDDoc.
The example “External Window” given by Adobe opens a new PDF (that was not opened) in an external window. If a PDF is opened, you cannot show it in another window again, for AVDocOpenFromXXX() returns always the same view.
With the workaround: MenuItem “New Window”, I can get several views of the same PDDoc and thus show a PDF in different windows including in an MS external window. But Acrobat and external windows interfere with each other: Acrobat lists all opened windows in system menu; if you press “revert” button, the external window will be closed.
I want to open several external windows based on the same PDDoc. They have the style like “Pan and Zoom Window”.
Regards
Shengyao_Chen@adobeforums.com Guest
-
Leonard_Rosenthol@adobeforums.com #4
Re: Duplicate AVDoc for the same PDDoc
Ah - got it!
In that case, you should look at the various PDPageDraw APIs for performing the drawing into your own window.
Leonard_Rosenthol@adobeforums.com Guest
-
Shengyao_Chen@adobeforums.com #5
Re: Duplicate AVDoc for the same PDDoc
The problem is, with PDPageDrawContentsToWindow I draw a BitMap in the external window. If a graphic is huge, this call is not efficient. As I notice, “Pan and Zoom Window” shows obviously a vector graphic. It there any method that draws a vector graphic in a window?
Shengyao_Chen@adobeforums.com Guest
-
Leonard_Rosenthol@adobeforums.com #6
Re: Duplicate AVDoc for the same PDDoc
You don't have to draw the entire page - there are versions of PDPageDraw that let you specific a specific region...
Leonard_Rosenthol@adobeforums.com Guest
-
Shengyao_Chen@adobeforums.com #7
Re: Duplicate AVDoc for the same PDDoc
Actually I have had the bitmap solution already. Because of the bad performance (by paging through a big pdf-file, it takes more than 10 seconds to create an overview figure for each page in the external window), I'm trying to find an alternative.
I wonder, if "Pan and Zoom Window" is also implemented with SDK API. It has a good performance and makes a smooth transition from page to page.
Shengyao_Chen@adobeforums.com Guest
-
Leonard_Rosenthol@adobeforums.com #8
Re: Duplicate AVDoc for the same PDDoc
No, the Pan and Zoom window is implemented using internal knowledge.
However, I think you may want to look over your code again. I've used the public APIs for rendering to secondary windows and don't see that poor performance. check your parameters, the way you copy (or even if you have to copy) to the secondary window, etc.
Leonard_Rosenthol@adobeforums.com Guest



Reply With Quote

