Questions tagged [javascript]

JavaScript is a scripting language commonly implemented as part of a web browser, but also of some PDF viewers.

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
655 views

How to get and process bitmap graphics at a pixel level on-the-fly?

We are trying to solve How to get intersection point(s) of two glyphs? and there are some interesting subtasks. In word cloud algorithms they are converting glyphs (a vector form) to a raster form and ...
3
votes
0answers
1k views

Latex forms, MakeTextField, LayoutTextField and javascript questions

I trying to do underlined TextField with label under the field (hyperref package). using Underlined text field in a fillable form i tried to renew MakeTextField: \renewcommand{\MakeTextField}[2]{{\...
2
votes
0answers
3k views

Interactive PDF - Click thumbnail images to open in quicklook like window

Is it possible to create an interactive PDF where you can click a scaled down embedded image and it opens it up large in a preview like window hovering in front of the open PDF? Sort of like the PDF ...
1
vote
0answers
31 views

How to make a pop up notice in adobe acrobat using LaTeX?

How to make a pop up notice in adobe acrobat using LaTeX? e.g. How can I simulate the left below corner pop up that shows page size by mouse hover.
1
vote
0answers
45 views

Hide fields from hyperref forms and delete the space they were taking when visible

I wanted to have a "hide/show" PushButton to hide a certain field, which I managed (see MWE). However, when the field is hidden, it still takes "space". Is there a way to not only hide the field ...
1
vote
0answers
137 views

submitForm error with javascript on a PDF

MWE \documentclass{article} \usepackage[pdfpagemode=None,pdfstartview=FitH,pdfview=FitH,colorlinks=true]{hyperref} \usepackage[pdftex]{insdljs} \usepackage[pdftex]{eforms} \begin{document} \...
1
vote
0answers
158 views

PDF-Form \textfield output with comma instead of dot (AFNumber-Format)

I build a pdf-form with the package hyperref. I am using this form to calcualate two sums and the difference between this sums. Therefore I am using the package insdljs. Everything works fine as long ...
1
vote
0answers
114 views

voting via pdflatex

Can one use a pdf file output of pdflatex as a ballot and vote counter? I am looking for a ballot.tex file such that ballot.pdf will have the following properties: There are boxes of choices A,B,C,D,...
1
vote
0answers
168 views

Javascript in preamble

For TeX Live 2012 there is the package insDLJS that allows you to write a documentwide complex javascriptcode in the header of the document, like (Pseudocode): \documentclass{standalone} \usepackage{...
0
votes
0answers
90 views

I am searching for javascript or PHP to render LaTeX to an image. Like https://latex.codecogs.com/svg.latex?<expression>

On my website (school/math) my users need 24 images for a game. The content of every image is a LaTeX expression, client-side rendered to an image with this code: src = "https://latex.codecogs.com/svg....
0
votes
0answers
15 views

Is pdflatex javascript this.getTemplate(“Template-Name”) possible

I would like to display a pdf page base on a selection box. If selection 1 is used, display page 1, if selection 2 is used display page 2. It is a kind of product datasheet and only the data of the ...
0
votes
0answers
21 views

Make ChoiceMenu not fillable in hyperref form dependent on other ChoiceMenu

I have a form and there is a ChoiceMenu with three different possibilities. For two of them I have a further ChoiceMenu and it does not make sense to fill them out if the belonging option of the first ...
0
votes
2answers
250 views

LaTeX PDF form: Detect CheckBox changed event

I use LaTeX to create a fillable PDF document. How can I detect that a \CheckBox has been clicked? It seems to react only to onfocus={...}, not to onclicked={...} or onchanged{...}. Do I need to ...
0
votes
0answers
68 views

Blacking out a created PDF after a given date with javascript

With the recent CJEU ruling, libraries can lend ebooks like normal books if the book cannot be used after the lending period. Therefore I wanted to try building a PDF with JavaScript which blacks out ...