ngx-extended-pdf-viewer icon indicating copy to clipboard operation
ngx-extended-pdf-viewer copied to clipboard

Theming for Acroforms

Open stephanrauh opened this issue 4 years ago • 3 comments

I don't like the standard design of the forms. It should be easy to customize the CSS rule, so let's do it!

stephanrauh avatar Oct 02 '21 19:10 stephanrauh

Hi @stephanrauh,

I'm interested in that topic. Is there any breakthrough made about it ?

Thank you for your time,

Best regards

namblard-sword avatar Apr 13 '22 06:04 namblard-sword

People kept me busy by finding and reporting bugs, so I didn't even begin yet. :)

But I really think it's easy. All the rules are collected in this file, and maybe also here, so all it takes is extracting these files and allowing users to replace them with other files. Plus, I think I should replace the hard-coded color values by SCSS variable to make customizing even simpler.

stephanrauh avatar Apr 13 '22 17:04 stephanrauh

@namblard-sword I've implemented [formTheme]="'light' and [formTheme]="'dark'". The third option is `[formTheme]="'custom'", which requires you to add a copy of the theme component yourself.

At the moment, there's some rudimentary documentation at https://pdfviewer.net/extended-pdf-viewer/theming.

The demo isn't as reliable as it should be yet. Plus, many properties of the form are defined by the author of the PDF file. This includes the font color, the border colors, and the background colors of the input fields. In other words, almost everything that counts. So successful form theming depends on the co-operation of the author of the PDF file.

May I invite you to run a test? I've published the feature with version 13.0.0-alpha.12.

Happy Easter! Stephan

stephanrauh avatar Apr 16 '22 21:04 stephanrauh

@namblard-sword Another Easter weekend... and this time I feel overwhelmed by a flood of tickets. In other words, I'm looking for ways to simplify the library. I'd like to remove the Acroform theme feature again, because it broke soon after implementing it. I doubt anybody has managed to use it successfully. What about you? Are you using Acroform themes?

stephanrauh avatar Apr 11 '23 21:04 stephanrauh

I've decided to remove [formTheme]. It's been broken for quite some time now, and I need to prune the library to keep up with the rapid progress of the pdf.js team.

stephanrauh avatar Jun 08 '23 16:06 stephanrauh