Copy link to clipboard
Copied
When there is an input field on the page along with the embedded viewer, it's possible to cause an input field to type right to left instead of left to right. Steps to reproduce (Seen this in chrome and edge from testing):
1) Using the sample below, type a value into the text field at the bottom of the page. Then, highlight the text in the field (as if tying to select all) but keep the mouse pressed down, and release the mouse on top of the embedded viewer. (note: if showing the PDF viewer in split screen view with fields to the right of the PDF, it's pretty common for users to do this)
2) Start typing. The text field will type right to left instead of left to right.
Are there any work arounds to this problem?
<div id="adobe-dc-view" style="width: 800px;"></div>
<script src="https://documentcloud.adobe.com/view-sdk/main.js"></script>
<script type="text/javascript">
document.addEventListener("adobe_dc_view_sdk.ready", function(){
var adobeDCView = new AdobeDC.View({clientId: "<YOUR_CLIENT_ID>", divId: "adobe-dc-view"});
adobeDCView.previewFile({
content:{location: {url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf"}},
metaData:{fileName: "Bodea Brochure.pdf"}
}, {embedMode: "IN_LINE"});
});
</script>
<input type="text">
Copy link to clipboard
Copied
Are you trying this on Windows? Any specific browser?
Copy link to clipboard
Copied
Windows 10. I've seen this on Edge and Chrome. Haven't tried other browsers.
Copy link to clipboard
Copied
Here's the error message shown in the console when reproduced. Very easy to reproduce by just creating a local html file on your computer (using the sample code above) and opening it in a browser.
Uncaught TypeError: Cannot read properties of undefined (reading 'x')
at PageContentHandler.handleMouseUp (documentcloud.adobe.com/dcpreviewdropin/2.18.3_1.901.0/bootstrap.js:2)
at onMouseUp (documentcloud.adobe.com/dcpreviewdropin/2.18.3_1.901.0/bootstrap.js:2)
at Object.ba (documentcloud.adobe.com/dc-core/2.19.2/dc-core.js:2)
at ja (documentcloud.adobe.com/dc-core/2.19.2/dc-core.js:2)
at ka (documentcloud.adobe.com/dc-core/2.19.2/dc-core.js:2)
at oa (documentcloud.adobe.com/dc-core/2.19.2/dc-core.js:2)
at lc (documentcloud.adobe.com/dc-core/2.19.2/dc-core.js:2)
at jc (documentcloud.adobe.com/dc-core/2.19.2/dc-core.js:2)
at mc (documentcloud.adobe.com/dc-core/2.19.2/dc-core.js:2)
at sc (documentcloud.adobe.com/dc-core/2.19.2/dc-core.js:2)
Copy link to clipboard
Copied
This appears to be a chromium defect: https://bugs.chromium.org/p/chromium/issues/detail?id=1201368&q=pdf%20backwards&can=2
Copy link to clipboard
Copied
This is the solution for Adobe Acrobat Pro 2017, so you can try it on the software you're using.
When editing a document, the Format tool to the right has a box that shows AV and an arrow underneath it. If the number in that box is not zero, change it to zero. This fixed my problem! I stumbled on the solution, but I hope it helps others. 🙂
Copy link to clipboard
Copied
This fixed it for me! Thank you!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more