view mupdf-source/docs/cookbook/javascript/advanced.rst @ 18:dd663470c57c

Make building an sdist work on FreeBSD and with Mercurial as SCM. Because of the inclusion of MuPDF symbolic links in tar-files must be handled also.
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 18 Sep 2025 22:02:17 +0200
parents b50eed0cc0ef
children
line wrap: on
line source

.. highlight:: javascript

Advanced
========

Create PDF
------------------------------------------------------------------------------

.. literalinclude:: ../../examples/pdf-create.js

Create PDF (low level)
------------------------------------------------------------------------------

.. literalinclude:: ../../examples/pdf-create-lowlevel.js

Merge PDF files
------------------------------------------------------------------------------

.. literalinclude:: ../../examples/pdf-merge.js

Create PDF with thumbnails
------------------------------------------------------------------------------

.. literalinclude:: ../../examples/create-thumbnail.js

Use Device to draw graphics
------------------------------------------------------------------------------

.. literalinclude:: ../../examples/draw-device.js

Trace Device
------------

.. literalinclude:: ../../examples/trace-device.js