Jump to content

Feature Request: Enhanced Features for Embedded PDF Files


Recommended Posts

Please consider enhancing the feature set for the PDF viewer applied to PDF files embedded in Evernote notes as viewed and interacted with from the Windows desktop Evernote application.  For example, consider the dynamic content from the following Web page (courtesy of DPReview)...
...for which the directly-relevant source code is...
<p>       <script type="text/javascript"> LensReviewWidget({ lensReviewId: "7", focalLength: 18, aperture: 3.5 }) </script>   </p>
Here is a "start" page I subsequently found for the aforementioned widget (again, courtesy of DPReview)...
... and here is the completed associated source code...
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">   <head>   <title>dpreview.com - Lens Review - Fullscreen</title>   <script src="swfobject.js" type="text/javascript"></script>   </head>   <body style="background-color:#000;padding:0px;margin:0px;height:100%;">   <div id="div_lensWidget" style="top:20px;bottom:20px;left:20px;right:20px;position:absolute;">   <div style="position:relative;top:50%;bottom:50%;margin-left:auto;margin-right:auto;text-align:center;width:420px;padding:10px;background:#111111;border:solid 1px #222222;font-size:10px;color:#cccccc;">The lens review widget is loading.<br/>If it does not load, please ensure you have <a href="http://www.adobe.com/products/flashplayer/">flash player version 9 (or later) installed</a>.</div>   <noscript>   <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="swf_lensWidget" align="middle">   <param name="allowScriptAccess" value="always" />   <param name="allowFullScreen" value="true" />   <param name="wmode" value="window" />   <param name="FlashVars" value="stack=horizontal&reviews=&vis=&fl=&av=&config=LensReviewConfiguration.xml?1&fullscreen=true&lock=" />   <param name="movie" value="http://a.img-dpreview.com/lensreviews/widget/LensVisualiser.swf?9" />   <param name="quality" value="high" />   <param name="bgcolor" value="#000000" />   <embed src="http://a.img-dpreview.com/lensreviews/widget/LensVisualiser.swf?9" FlashVars="stack=horizontal&reviews=&vis=&fl=&av=&config=LensReviewConfiguration.xml?1&fullscreen=true&lock=" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="swf_lensWidget" align="middle" wmode="window" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />   </object>   </noscript>   </div>   <script type="text/javascript">   var fo_lensWidget = new SWFObject("http://a.img-dpreview.com/lensreviews/widget/LensVisualiser.swf?9", "swf_lensWidget", "100%", "100%", "9", "#000000");   fo_lensWidget.addParam("allowScriptAccess", "always");   fo_lensWidget.addParam("quality", "high");   fo_lensWidget.addParam("scale", "noscale");   fo_lensWidget.addParam("play", "true");   fo_lensWidget.addParam("loop", "true");   fo_lensWidget.addParam("wmode", "window");   fo_lensWidget.addParam("name", "swf_lensWidget");   fo_lensWidget.addParam("FlashVars", "stack=horizontal&reviews=&vis=&fl=&av=&config=LensReviewConfiguration.xml?1&fullscreen=true&lock=");   fo_lensWidget.useExpressInstall('/lensreviews/widget/expressinstall.swf');fo_lensWidget.write("div_lensWidget");   </script>   </body>   </html>    


I generated a PDF file for my personal reference from the aforementioned implementation of this widget.  I used Adobe Acrobat Pro XI -- specifically, that application's add-on to Microsoft Internet Explorer (IE) 11 -- to do this.  I used that add-on's "Select" feature to limit the PDF conversion to that widget.


I've attached the resulting PDF file as 'DPReview_Nikon_Nikkor_AFSDX18-55mm3.5-5.6GVR_TestResults_Studio.pdf'.  The file -- as I view it in Acrobat Pro XI -- appears to show all of the "baseline" content I see in the widget as I view it in IE 11. Furthermore, all of the dynamic responses to user input (via mouse hovering, single-clicking, etc. in this case) available when interacting with the widget in IE 11 appear to be available from the aforementioned PDF file as viewed in Acrobat Pro XI.  The same is true for Acrobat Reader XI.  In order to allow myself access to this dynamic content from the Acrobat apps, I needed to allow connection from the apps to both the widget host site (http://www.dpreview.com) and the Flash-serving site (http://fpdownload2.macromedia.com).  The apearance of the corresponding Security Warning Windows are shown in attachments 'Acrobat_Reader_XI_ContentFromWebWidget_SecurityWarning_reWebURL_2014-07-23.pdf' and 'Acrobat_Reader_XI_ContentFromWebWidget_SecurityWarning_reMacromediaSite_2014-07-23.pdf', respectively.


I subsequently embedded 'DPReview_Nikon_Nikkor_AFSDX18-55mm3.5-5.6GVR_TestResults_Studio.pdf' in an Evernote note from Evernote for Windows (desktop) v5.4.1.3962.  I did so by using the [paper clip] button from the Evernote Button Bar.  Not only is the aforementioned, user-driven dynamic content not supported in the inline PDF viewer; no widget content (dynamic or static) is shown at all.  Only the Web page's default black background is visible where the widget should appear.  I've attached a note containing only the aforementioned PDF file as a PDF printout ('Evernote_DPReview_Nikon_Nikkor_AFSDX18-55mm3.5-5.6GVR_TestResults_Studio.pdf').


I recognize that I could enable the "Always show PDF documents as attachments" selection in the 'Note' tab of the 'Options' tabbed dialog box accessed from the 'Tools' menu.  I also assume that I'll never be able to view the Flash driven content through a PDF file on my iOS device whether I attempt to do so via the corresponding Evernote note or the "native" PDF file (e.g., via Adobe Reader for iOS).  On that platform, the issue of application-level support for accessing and displaying the relevant content and accepting associated user input will presumably always be moot due to Apple's commitment to exclude Flash support on iOS.  However, it would be more effective to access the PDF content from within the note via the inline viewer, even if the best Evernote could be expected to do to enable this among the two platforms I regularly use is to incorporate applicable PDF-related feature support in the Windows (desktop) app.







Link to comment


This topic is now archived and is closed to further replies.

  • Create New...