Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Input field typing backwards when using PDF Embed API

Explorer ,
Sep 29, 2021 Sep 29, 2021

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">

TOPICS
PDF Embed API
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 11, 2021 Oct 11, 2021

Are you trying this on Windows? Any specific browser?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 19, 2021 Oct 19, 2021

Windows 10. I've seen this on Edge and Chrome. Haven't tried other browsers.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 19, 2021 Oct 19, 2021

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)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 26, 2022 Jan 26, 2022
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 29, 2022 Sep 29, 2022

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. 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 25, 2023 Jun 25, 2023
LATEST

This fixed it for me! Thank you!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources