What types of files can be printed with Box Ui Elements
Hello. In my application I use Box UI Elements and I want to add print functionality. I have called print() method, but it works only for .txt files, nor for .pdf, .doc, .odt etc. What I am doing wrong?
-
Hey ,
Would you be able to share an example via CodePen? Here's all of ours:
https://codepen.io/box-platform/pens/tags/?grid_type=list&selected_tag=example
And you can see our Content Preview example (w/ print) here:
https://codepen.io/box-platform/pen/rmZdjm
By comparing your example and ours, hopefully we can find the difference! If you find it on your own, let us know!
Thanks,
Jason
-
Hi ,
In what browsers are you seeing this issue? The expected behavior is for the PDF to be opened in a new tab, prompting the native browser print functionality. Unfortunately, the fact that codepen wraps our example in an iframe prevents it from grabbing the actual PDF content to print, so the example attempts to print a blank page. However, I am seeing the print dialog in codepen, and I've confirmed the correct behavior in other instances of the UI Element (e.g. our first party application which uses the same component).
サインインしてコメントを残してください。
コメント
6件のコメント