How to remove text-vertical-alignment div of freetext style popup

Which product are you using?
PDF.js Express Plus

PDF.js Express Version

UI version 8.7.0
Core version 8.7.4
webviewer.min.js 8.7.4

I questioned how to fix version mismatch in another topic.

Detailed description of issue
I want to remove text-vertical-alignment div of freetext style popup. Is this possible?

Expected behaviour
We want to remove the bluely marked options.

Does your issue happen with every document, or just one?

Link to document

Code snippet

Hello Hiraki,

You can hide the text-vertical-alignment by changing the CSS properties.
Here is a guide on how to customize styles in the viewer: PDF.js Express Viewer Style Customization (Color & CSS) | Documentation

    licenseKey: 'YOUR_LICENSE_KEY',
    path: 'lib',
    css: 'path/to/stylesheet.css'
​ },

In the CSS file, you can add the following to hide the div.

.row.text-vertical-alignment {
    display: none !important;

Best Regards,

Hi darian,

This perfectly worked!
Thank you for your help.

Kind regards,

1 Like