TransWikia.com

TeXstudio scripts – internal viewer

TeX - LaTeX Asked on March 11, 2021

I need to make a macro script that would “press” Fit to Width button in the TeXstudio’s internal viewer.

I found that viewer object is called pdfs[0], but, unfortunately, on the wiki page there are no list of methods of this object.

enter image description here

One Answer

Searching a bit in the source code (see here), I found that pdfs object may be related to PDFDocument.

From here I also found a script involving the pdf viewer.

Then I've made several attempts and I've figured out the solution:

pdfs[0].widget().fitWidth();

Correct answer by JBach on March 11, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP