# Vertical text selection

**URL:** <https://pdfjs.community/t/vertical-text-selection/1704>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [May 25, 2022, 8:05am UTC](https://pdfjs.community/t/vertical-text-selection/1704 "2022-05-25T08:05:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![v.condratiev](https://avatars.discourse-cdn.com/v4/letter/v/9de0a6/32.png) [@v.condratiev](https://pdfjs.community/u/v.condratiev)\
**Post date:** [May 25, 2022, 8:05am UTC](https://pdfjs.community/t/vertical-text-selection/1704/1 "2022-05-25T08:05:22Z")

</div>

**Which product are you using?**  
PDF.js Express Viewer

**Detailed description of issue**  
Vertical text selection not working.

**Expected behaviour**  
Vertical text selection should work, tried with PDF.js and PDFTron Viewer with the same documents and it does work properly.

**Does your issue happen with every document, or just one?**  
Tried multiple documents, same behaviour.

**Link to document**  
Can’t provide the document.

**Code snippet**  
Tried on demo page.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [May 25, 2022, 8:05am UTC](https://pdfjs.community/t/vertical-text-selection/1704/3 "2022-05-25T08:05:24Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Customizing WebViewer UI Popups](https://pdfjs.express/documentation/ui-customization/customizing-popup.8)
- [Core engine for PDF.js Express - Creating your own UI using the core SDK](https://pdfjs.express/documentation/ui-customization/core.8#creating-your-own-ui-using-the-core-sdk)
- [Core engine for WebViewer - Creating your own UI using WebViewer Core](https://pdfjs.express/documentation/ui-customization/core#creating-your-own-ui-using-webviewer-core)

APIs:
- [Tools](https://pdfjs.express/api/7.0/Tools.html#__anchor)
- [Core.DocumentViewer - drawSelection(pageNumber)](https://pdfjs.express/api/Core.DocumentViewer.html#drawSelection__anchor)
- [Core.Tools.TextSelectTool](https://pdfjs.express/api/Core.Tools.TextSelectTool.html#__anchor)

Forums:
- [Text combing not working](https://pdfjs.community/t/text-combing-not-working/1172/8)
- [Handeling test selection programatically (caret manipulation)](https://pdfjs.community/t/handeling-test-selection-programatically-caret-manipulation/408/1)
- [How to customize the text selection tooltip](https://pdfjs.community/t/how-to-customize-the-text-selection-tooltip/622/4)

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [May 25, 2022, 11:40pm UTC](https://pdfjs.community/t/vertical-text-selection/1704/4 "2022-05-25T23:40:45Z")

</div>

Hello v.condratiev,

Can you share screenshots of the current behaviour, and the expected behaviour?

We have a different text selection mode called “Rectangular” you can set it like so:  
[https://www.pdftron.com/api/web/Core.Tools.TextTool.html#selection\_mode](https://www.pdftron.com/api/web/Core.Tools.TextTool.html#selection_mode)

Best regards,  
Tyler Gordon  
Web Development Support Engineer  
PDFTron

---

<div class="post-metadata">

**Author:** ![v.condratiev](https://avatars.discourse-cdn.com/v4/letter/v/9de0a6/32.png) [@v.condratiev](https://pdfjs.community/u/v.condratiev)\
**Post date:** [May 26, 2022, 5:33am UTC](https://pdfjs.community/t/vertical-text-selection/1704/5 "2022-05-26T05:33:02Z")

</div>

Hello Tyler,  
Yes, of course.  
So this is the actual text that I’m trying to select.  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/1df763d0242f9bd07555a9670e77ce2a7ff356bb.png)

I can’t select that vertical / sideways text.  
I noticed that this happens for all vertical/sideways text and it does not matter what document I use.

If I try to open the file with PDF.js or PDFTron, this works properly.

Best Regards,  
Vadim

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [May 26, 2022, 5:31pm UTC](https://pdfjs.community/t/vertical-text-selection/1704/6 "2022-05-26T17:31:00Z")

</div>

Hello v.condratiev,

Using test files on my end, which have sideways text, I am able to select them. I have a feeling this could be a file specific issue. I see you noted you cant provide the document, I could give you my email for which you can send the file if you would like.

Best regards,  
Tyler Gordon  
Web Development Support Engineer  
PDFTron

---

<div class="post-metadata">

**Author:** ![v.condratiev](https://avatars.discourse-cdn.com/v4/letter/v/9de0a6/32.png) [@v.condratiev](https://pdfjs.community/u/v.condratiev)\
**Post date:** [May 30, 2022, 5:06am UTC](https://pdfjs.community/t/vertical-text-selection/1704/7 "2022-05-30T05:06:22Z")

</div>

Hi Tyler,

That would be great! I can send you the file.

Thank you!  
Vadim

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [May 30, 2022, 3:19pm UTC](https://pdfjs.community/t/vertical-text-selection/1704/8 "2022-05-30T15:19:08Z")

</div>

Hello v.condratiev,

Here is my email: [tgordon@pdftron.com](mailto:tgordon@pdftron.com)

Best regards,  
Tyler Gordon  
Web Development Support Engineer  
PDFTron

---

<div class="post-metadata">

**Author:** ![v.condratiev](https://avatars.discourse-cdn.com/v4/letter/v/9de0a6/32.png) [@v.condratiev](https://pdfjs.community/u/v.condratiev)\
**Post date:** [June 1, 2022, 1:03pm UTC](https://pdfjs.community/t/vertical-text-selection/1704/9 "2022-06-01T13:03:21Z")

</div>

Hi Tyler,

I sent you the file. Can you please confirm that you received it ?

Best regards,  
Vadim
