Duplicate AVDoc for the same PDDoc

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. PDDoc.Save problem
      Example of VBScript: ==Script begin Function Execute(infile, outfile) On Error Resume Next Dim avdoc, pddoc Dim saveOk Set avdoc =...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default 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

  9. #8

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139