0

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

1

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();
| improve this answer | |
  • Thank you so much! – antshar Aug 6 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.