DocView settings for a plugin

Hi all,
I am writing a plug-in for Acrobat and eventually Reader 9.0 which will send the current page zoom setting, page size and maybe zoomed area size to my application for printing.
I am having trouble getting the raw data above for the page currently in the display.
For an average 8.5 x 11 PDF document, I can find the following
The crop box coordinates of the page.
left == 0
right == 51621336
top == 40045104
bottom == 0
the units are unknown, although this data appears to represent the size of the original page because it does not vary based on zoom or viewable area in the display.
I can also display the zoom number, and the top left x & y coordinates of the viewed page.
Typical output looks like
view datum are viewZoom 51652 viewX -30 viewY -4
left 0 right 51621336 top 40045104 bottom 0
for an 8 1/2 x 11 document opened at 78.8% zoom in full view in the window.
I understand the zoom number, however the units for the crop box don't match those for the viewX & viewY (top left corner)
How can I get the zoom number, the page size (in units X) and the top left corner of the zoomed area (in units X)
I could also substitute the zoomed area size for the top left corner coordinates as long as the units are the same.
Thanks for any input,
Jesse

Thanks Leonard! I really appreciate your input.
I use a callback ASPageViewDidChange to know when the page view has changed (including zoom setting change)
I am using AVDocViewGetDef to get the AVDocViewDef structure after the event.
In the structure, I am looking at
ASFixed pageViewZoom
AVDevCoord pageViewX
AVDevCoord pageViewY
AVScreenRect windowFrame
AVScreenRect is AVRect
AVRect is
AVSDKDependentInteger left
AVSDKDependentInteger top
AVSDKDependentInteger right
AVSDKDependentInteger bottom
AVSDKDependentInteger is ASInt32 and thats a long int.
51652 for pageViewZoom represents 78.8% zoom based on the formula:
1% zoom == 655.36 -> 51652 / 655.36 = 78.85. I use this number in my application to understand the zoom area size compared to the original page size (adjusting/compensating for aspect ratio in arbritrarily shaped windows)
Bottom line, I am not really concerned about this number.
pageViewX and pageViewY also make sense, I got -30 and -4 because the page view had a slight amount of blank space in the display when the image did not fill the display space. If I zoom to 85% the number increases to positive numbers. I would prefer coordinates of the top left corner of the zoomed image rather than the display corner. Actually, I would prefer the corners or sides of the entire zoom area in the display but not sure I can get that.
What I don't understand is the units of the cropBox or mediaBox.
They appear to be long int but their values are extremely large.
Although, If you divide them, they appear to indicate an aspect ratio equal to 8.5 / 11.
8.5 / 11 = .772727~
40045104 / 51621336 = .7757
What would these units be and how do they compare with the viewX and viewY coordinates?
I don't find an API to convert coordinates but I am also confused about which type I am getting from the viewDef.
We have an existing license for Adobe Reader 7. We are looking at upgrading to Adobe Reader 9 and Acrobat 9. I'll change code so I'll need to get a new key for Reader and an Adobe 9 SDK plus Acrobat seats. My manager and software deployment personnel will be handling this.
I am testing on Acrobat 9. So far everything looks good and I am impressed with the 3D stuff which we need.
This is really the sum total of my new code, I just need the information I outlined to complete the whole project. Our existing plugin code will be used along with the changes I have described.
Thanks,
Jesse Perry

Similar Messages

  • Settings for Thickbox plugin

    Hello
    I'm using the Thickbox plugin in Dreamweaver and everything works fine.
    I have a very narrow, long picture which needs to get bigger after clicking on the
    thumbnail but it doesn't seem to get any bigger than a certain amount (it certainly
    has the dimensions to become bigger). Does Thickbox puts a limit to the size of
    pictures when you click to expand them? And is there a way to change this limit?

    According to the developer, Thickbox is no longer supported.  They recommend using a more modern plugin such as Fancybox
    http://fancybox.net/
    Nancy O.

  • " plug-in name does not support the highest level of security for Safari plug-ins" appear for some plugins in Safari Security "Manage Website Settings"?

    Hi,
    Wondering why "<plug-in name> does not support the highest level of security for Safari plug-ins" appear for some plugins in Safari > Security > "Manage Website Settings"?
    Have been trying to get to the root cause of the problem but did not find much on this. I am trying to figure out what can get the warning to go away completely than using the Allow/Always Allow options for the plug-in
    Thanks,
    Shyam

    Hi Linc,
    Thank you for your response. Here is the screenshot of the warning that I am talking about.
    Here is what I do:
    1. Launch Safari and open its Preferences. I have Safari 7.1 installed on my machine.
    2. Click Security Tab and click Manage WebSite Settings
    3. A window opens showing me all the Plug-ins that I have (listed on the left hand side).
    4. One of them is the Adobe Reader plug-in. When I click Adobe Reader, the following details about the plug-in show up on the right
    I was referring to the highlighted section that warns me about this plug-in not using the highest level of security for Safari Plug-ins.
    Note: I do not see this for all my plug-ins (QuickTime, Adobe Flash Player don't give me this warning) which tells me that there is a way to make the warning go away.
    Thanks again,
    Shyam

  • Separate Standalone/Projector settings from browser plugin settings for H. Acceleration?

    Hello,
    I'd like to have Hardware Acceleration in my Standalone/Projector executable, but turned off when browsing, for the plugin.
    I can't seem to find a per website solution for this option - it's either on or off, everywhere.
    Using W7 x64, latest Flash versions, and the Firefox browser. IE is totally removed from my system.
    Any solutions would be appreciated?

    Anyone?

  • Different rich text/plain text settings for different accounts?

    I use Mail for both my work email (MS Exchange) and my personal email (webmail/IMAP). Many of my coworkers use Outlook's rich text formatting options, so I need to have my work emails go out as rich text. However I'd like to have my personal emails go out as plain text.
    I can set Mail to create new messages in plain text, but to reply in the same format of the original message. That takes care of everything EXCEPT when I compose a new message using my work address... in that case it goes out as plain text, and my coworkers complain that they can't use formatting, because their copies of Outlook are in turn configured to reply in the same format as the original message.
    So ideally what I'd like is to have two different formatting settings for my two different accounts. Anyone know how this might be done? Any plugins, etc., that might accomplish this?

    Since you are running Jaguar, Jaguar and Panther Mail do not support composing in HTML and this includes when forwarding a message received that was composed in HTML.
    Since Jaguar and Panther Mail do not support composing or forwarding HTML, you can't embed images or photos in the message body anyway.
    RTF with Tiger Mail is really HTML and although Tiger Mail does not include an HTML composer/editor, you can copy/paste HTML format from a web page and forward HTML received.
    Images/photos and single page PDF attachments are revealed as inline or viewed in place within the body of the message by default which cannot be turned off. This applies to received and sent messages which is not the same as being embedded. Embedded requires HTML and an embedded attachment is not a true attachment. All Mail.app versions render HTML received but you cannot attach a photo or image as embedded with Jaguar or Panther Mail so it doesn't matter if you use RTF or Plain Text in regards to photo/image or single page PDF attachments which appear as inline or viewed in place within the body of the message by default regardless.
    When you use Plain Text for message composition, the receiving mail client renders the text in whatever font the reader chooses.
    IMO, everyone should use Plain Text for message composition. Messages would be boring to some but the majority if not all problems experienced with email would be eliminated if HTML was banned from message composition.

  • The Shockwave for Director plugin is no longer working in Firefox 7 for mac

    Dear Firefox,
    I run a website which uses Adobe's Shockwave for Director plugin to view an animation. This plugin worked perfectly in Firefox for mac, up until Firefox 7. Firefox now sees it only as an unknown added plugin and the animation can no longer open. I have the latest plugin version installed from Adobe, which works fine in Firefox 7 for windows, in Safari (mac, win) and Internet Explorer (win). The Flash plugin is also working fine.
    In the preference panel, I have allowed Adobe to install plugins. Do I need to change other settings? Is something stopping Firefox for mac from properly loading the plugin?
    Many thanks for your help.

    Have you tried this one?
    https://addons.mozilla.org/en-US/firefox/addon/roomy-bookmarks-toolbar/

  • What are the best optimization settings for Logic 9....

    Hey guys,
    I am running Logic 9 on a Macbook Pro 2.53GHz, Intel Core 2 Duo, 4GB RAM, OSX 10.6.4, with a AK1 soundcard. And I was wondering what the best optimization settings for this setup are?
    I have been having a few issues with drop outs in sound during playback, which is also carried over when i bounce the audio. I did some research and found my latency settings needed to be higher, so I set the I/O buffer size to 512. I am also running all samples from the local hdd, I was thinking maybe put the samples on an external drive. I also changed Logic 9 to 64bit mode.
    Does anyone know if this is right and anything else I need to do with Logic and/or the AK1??

    First, return to 32-bit mode. 64 bit still has some ß-issues and some features that are not working/disabled, and the only perk of 64-bit is that Logic can adress more than 4 GB RAM, which you don't have anyway.
    Samples on the startup drive is not a problem, unless you start using really big third party sample libraries, or zillions of EXS instruments. Some of the Logic content insists on residing on the startup disk anyway, better leave that where it is.
    If you have an external, use that to store your Logic projects, or, in other words, make it your recording disk (as recordings are stored in the project folder). You do record audio too, I assume? Anyway, if you get an external, make it a FireWire one, not USB. FireWire is much easier on the CPU, and +for audio (and sample-) streaming+ more reliable and faster than USB.
    If dropouts you hear during playback also show up in the (offline?) bounce, it is probably not a buffer issue, as the buffer is irrelevant for bouncing offline.
    So how many tracks and what kind of tracks in this project? Which plugins and how many instances of them?

  • Setting format and format options in Output module settings for render queue item

    Hello,
    I am unable to set the "Format" and "Format options" for video in output module settings programatically using After effects apis.
    I referred the after effects cs3 sdk guide for the apis.
    I find apis for all other options in the "outputmodule settings " like :
    AEGP_SetEmbedOptions
    AEGP_SetOutputChannels
    AEGP_SetStretchInfo
    AEGP_SetSoundFormatInfo
    But there is no api listed for setting the options available in the "Format" tab and "Format options" tab.
    The "Format" tab and "Format options" tab is available in the dialog that opens when user clicks on the Output module settings for the render queue item.
    The format tab when clicked shows a drop down list with aff different formats. By default "Video for Windows" is set.
    The drop down list contains following format options
    Adobe Clip Notes
    Adobe Flash video
    Quicktime movie
    Video for Windows
    I need to be able to set the "Quicktime movie" option in the Format tab programmatically and then set the compression type as "Animation" in the compression settings programatically using the api functions available in AE CS3 SDK
    Please suggest the suitable api to do so.
    I need to write my own plugin to export to Quicktime movie using the after effects apis.
    I follow below steps to do so.
    1. AEGP_InsertMenuCommand and add export option to AE with my own plugin name
    2. In the command hook, select active item using AEGP_GetActiveItem
    3. Add it to render queue
    4. Set the output module settings for 0 th output module using
    suites.OutputModuleSuite1()
    5. Use different functions from suites.OutputModuleSuite1() to set the output module settings like EmbedOptions,StrechInfo etc.
    6. Till this step, I am doing it right. But I am not able to find any api for setting Format options using suites.OutputModuleSuite1()
    I also checked all other suites available for setting FormatOptions but no luck.
    Please help.
    Thanks,
    -Namita

    Hi Namita,
    I am experiencing the same problem.
    I am using AE CC SDK, and I am unable to change the outputmodule format to any of the other movie format types (mov, mpg, flv, etc.).
    It is always set to "avi"
    I even compiled and ran the Queuebert example in the SDK, and there I get the same problem: the path extension is always left on ".avi"
    Does anyone know how to change this?

  • When trying to sign into facebook in settings for ios6, I get an error that says "You cannot sign in from your iPhone since you have opted out of Facebook Platform." What gives?

    When trying to sign into facebook in settings for ios6, I get an error that says "You cannot sign in from your iPhone since you have opted out of Facebook Platform." What gives?
    More info: I've combed through the settings in facebook and there is nothing that shows I'm blocking anything from accessing it.

    Sure sounds like a Facebook setting. When you look at your Privacy Settings in Facebook (on facebook.com), you should see something under "Apps you use" that says
    Turn off your ability to use apps, plugins, and websites on and off Facebook. After you turn this off, we will not store information about you when you use apps or websites off Facebook.
    The "Turn off" is a hyperlink that shuts down the Facebook platform. If you don't see this, or if the wording is different, you may have (inadvertently?) shut this off, and should be able to turn it back on.
    Edit: The sequence to that screen on facebook.com is: Privacy Settings (from the upper right dropdown), then "Ads, Apps and Websites" will have an "Edit settings" link to the right. This is where you'll see the "Apps you use" screen.

  • Best settings for importing HD movies to ATV for video gallery

    hello -
    i work for a gallery, and we have a video artist who will be showing HD videos here for 2-3 months. we bought 2 AppleTVs to use to show the movies, and i'm trying to figure out the best way to convert the material and get the files on there.
    using the "Create Apple TV version" doesn't preserve the HD quality of the originals, which i know aren't compatible natively. i was hoping there is a place in the settings for the ATV where i could at least review the video codec in use when converting in iTunes, but there doesn't seem to be a place for it. am i blind or is there no choice in the matter?
    i've tried converting in Quicktime Pro using the settings that are on the ATV specs page, and i was successful once (in a short excerpt without much video movement) but no longer (using an excerpt that has more color, movement, etc). the bit rate is too high i'm guessing, tho i've tried to limit it to 5000 k/sec. it ends up coming out 18m / sec for some reason......
    for some reason i can't get handbrake to open the file.
    any thoughts? we can't afford to buy new computers to stream the original off of, so we're hoping the ATV can show the movies in the highest def possible. she sent them in 720p50 format, so i had to buy a decoder plugin to view them (DVCPro HD from Calibrated Software).
    thanks in advance
    bbbb

    hello -
    i work for a gallery, and we have a video artist who will be showing HD videos here for 2-3 months. we bought 2 AppleTVs to use to show the movies, and i'm trying to figure out the best way to convert the material and get the files on there.
    using the "Create Apple TV version" doesn't preserve the HD quality of the originals, which i know aren't compatible natively. i was hoping there is a place in the settings for the ATV where i could at least review the video codec in use when converting in iTunes, but there doesn't seem to be a place for it. am i blind or is there no choice in the matter?
    i've tried converting in Quicktime Pro using the settings that are on the ATV specs page, and i was successful once (in a short excerpt without much video movement) but no longer (using an excerpt that has more color, movement, etc). the bit rate is too high i'm guessing, tho i've tried to limit it to 5000 k/sec. it ends up coming out 18m / sec for some reason......
    for some reason i can't get handbrake to open the file.
    any thoughts? we can't afford to buy new computers to stream the original off of, so we're hoping the ATV can show the movies in the highest def possible. she sent them in 720p50 format, so i had to buy a decoder plugin to view them (DVCPro HD from Calibrated Software).
    thanks in advance
    bbbb

  • Photoshop CS4 corrupt save for web plugin

    Hi
    I've been having problems with my save for web function freezing, so I deleted my preferrences , settings, accidently deleted my save for web plugin. The save for web then greyed out if I tired to save for web any type of document. I moved my save for web plugin from my trash back into the plugin folder. Photoshop save for web was still greyed out. I then restarted my computer and the save for web is still greyed out.
    Any sugessions on what I can do to activate "save for web" again would be much appreciated.
    I  think it's the plugin that's corrupt, I can't find the photoshop cd to  reinstall it.
    Has anyone got the MAC CS4 Photoshop "save for web plugin"  (Users/[Username]/Library/Preferences/Adobe/Plugins/Adobe Save for Web  CS4/Photoshop/Adobe Save for Web CS4 Prefs) that they could send me.
    This is my CS4 Plugin (it was like this before I accidently deleted it), my collegue's cs4 plugin doesn't look anything like this and doesn't work for me either):
    Thanks very much
    Abi

    Sorry I meant my collegue's cs5 plugin.
    I've read  quite a few posts on this subject and other people have got their friend  to send them their plugin and they've inserted it onto their computer  and it fixed the problem. But I don't know anyone who has photoshop cs4  on a mac.
    This is my cs4 plugin
    This is my collegues cs5 save for web plugin
    Thanks

  • Not able to do settings for Resource Files and Source Files (Indesign CS4 )

    Hi,
    I am new to Indesign Plugin Development .
    I want to build the sample sdk examples from Indesign SDK(CS4) for windows .
    Also I am not able to build project developed using Dollyxs. Its
    giving error as PRJ0003 : Error spawning 'cmd.exe' while I am building it.
    I have no idea abt settings for Project->Property for Resource and all
    other files.
    Can anybody tell what are the settings to be made at Project ->Property
    dialog for all files.
    Thanks and Regards,
    Ravi Sharma

    I have the same problem - any update on this?
    Tom

  • Why doesn't each 'page's info' adhere to the settings for the plug-ins?

    When I check my plugins, add ons, for updates, there are option blocks on the right that set whether or not to "Always Activate" or "Always Ask". My question is- -for every page that opens, there is a "page info" option we can check to see/check what is allowed or blocked under Permissions ... And* what the Permission 'settings' ARE for That* page. Why doesn't EVERY page display the Permissions' settings that we have Already set on the Plugins screen*(?). EVERY page has to have the permissions re-done for EVERY domain/server/site provider. Why* aren't the settings that are set on the Plugins screen Used* AS the 'Default' for every page/domain/site, etc.? Note*- if I DON'T change the permissions to "allow", for certain plugins, the page will not work*.
    Also, the "Java Deployment Toolkit 7.0.450.18 10.45.2.18" still* shows as "Vulnerable" After* updating (verified update*). So I found the option to 'Disable' this particular plugin. Now it displays at the bottom of the Plugin page, greyed out. However*... after updating to Java "SE7 U45" (..for 1 [One*] day ONLY, it showed as Up-to-Date, NOT vulnerable, on every 'page info' screen*) ... and Actually, it Still Does show as Up-To-Date after an Update check*..(??)... But on EVERY page info screen the "Java(TM) Platform SE7 U--Vulnerable Plugin!" is displayed (?). How can it be Up-To-Date and OK on the plugin check screen, but show as a "Vulnerable Plugin" on EVERY 'Page Info' screen?

    Sorry, RamboTrader ... I Thought I was replying to another guy that had made a suggestion to me*.. (MY bad*) ...
    ... But I'll try to answer some of your questions ...
    1- usually, "yes"* just make sure you Trust that site (if you have anti-virus, anti-malware, etc, and run a scan every week (or so) and Haven't come up with anything quarantined or removed yet, you''re probably safe there*
    2- sorry, "yes", there's Always a real danger... that's why we have the anti-everything we have (right?)
    3- depends on the site*. A Lot of sites don't need java at all (except to run their ads or commercials... 'targeted' or not). Adobe Flash or Shockwave should be able to handle stuff like youtube, etc (but if it doesn't*, just go into the 'Page Info' Permissions* and Allow the [Vulnerable] Java and see if that fixes it). It more than likely will.
    I think it's just a matter of Time* before Adobe* Flash, and practically Every other video app/player may be marked as "vulnerable"... like Java... because every one of them CAN carry a virus or trojan to us in some imbedded format. If JAVA couldn't find a way to stop them* (hackers, etc*) they either ..1-aren't smart enough, or 2-just gave up trying to stay ahead of them... (like the 'ad' says, some-unGodly-percentage-of-machines use Java already ... so They are making Their money*... what more do they need to do, really..?). They don't care* about us or our stuff, as long as we Buy More.... but I'm a bit jaded*.

  • Applet Not Running in IE. Need IE settings for running applet.

    Hi
    I am facing a problem with Applet while running in IE-6. The problem is very simple; Applet is not running in IE-6, not even a simple applet which displays just a Label.
    I am using Java Version 1.4
    Settings for IE is as follows
    Java (Sun)
    CHECKED Use Java 2 v1.4.0 for <applet>
    Microsoft VM
    CHECKED Java console enabled
    NOT CHECKED Java logging enabled
    CHECKED JIT compiler for virtual machine enabled
    The applet is running in Appletviewer and run in IE in some other machine. The problem is in my browser and Java versions.
    If I start the applet in IE it is not showing even Jave Console (which is enabled).
    In Java Plugin (Control Panel) I enabled Show Console and set MSIE checked.
    What should I do to solve such a stupid problem with my IE. I have updated my JVM and IE twice but yet to wait for solution.
    Your help is worshipfully appericated.
    with love Vijay

    I got some reasonable solution from some other forum.
    The Problem is with the VM. The JVM is crashed with MS VM.
    That is why the browser diplays class not found error.
    This is because the MS VM is not allowing the JVM to look for .class files.
    This will happen for java 1.4.x .
    If you use HTML converter (converting the applet to object) it will work.
    But the Optimal solution is compile your applet file with -target option.
    e-g
    javac target 1.1 HelloWorld.java
    It is the most efficient way to avoid such problems with IE while running the applets.
    I Thank you all for your solutions.
    with love Vija

  • Best optimization settings for non-grainy animation?

    I am working on a pretty small animation, but it's turning out grainy (as I realize some animations can be).  But, there are so many combinations of settings, and I'm not too familiar with terms, etc.  What are the best settings for getting a clear animation?? The attached *.gif is the one I'm working on--it has only 8 frames (2 original, and 6 tweens done through CS4's animation function).  I played around the best I could with settings, but it's still not as clear as I'd like it.  Is it when you add the tweens that it affects quality?
    Thanks for helping!

    First, return to 32-bit mode. 64 bit still has some ß-issues and some features that are not working/disabled, and the only perk of 64-bit is that Logic can adress more than 4 GB RAM, which you don't have anyway.
    Samples on the startup drive is not a problem, unless you start using really big third party sample libraries, or zillions of EXS instruments. Some of the Logic content insists on residing on the startup disk anyway, better leave that where it is.
    If you have an external, use that to store your Logic projects, or, in other words, make it your recording disk (as recordings are stored in the project folder). You do record audio too, I assume? Anyway, if you get an external, make it a FireWire one, not USB. FireWire is much easier on the CPU, and +for audio (and sample-) streaming+ more reliable and faster than USB.
    If dropouts you hear during playback also show up in the (offline?) bounce, it is probably not a buffer issue, as the buffer is irrelevant for bouncing offline.
    So how many tracks and what kind of tracks in this project? Which plugins and how many instances of them?

Maybe you are looking for