Skip to main content
Known Participant
Sep 29, 2021 3:31 PM UTC
Question

Input field typing backwards when using PDF Embed API

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

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Participant
Sep 29, 2022 11:13 PM UTC

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
Participant
Jun 26, 2023 1:53 AM UTC

This fixed it for me! Thank you!

Translate
Seth5E69Author
Known Participant
Jan 27, 2022 2:30 AM UTC
Adobe Employee
Oct 11, 2021 3:41 PM UTC

Are you trying this on Windows? Any specific browser?

Translate
Seth5E69Author
Known Participant
Oct 19, 2021 4:07 PM UTC

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

Translate