Pdf

<ppw-pdfview>

The target document is /public/documents/Facture_F20200024_BASIC_gp.pdf (must be in the public folder).

<ppw-pdfview>

The target document is /public/documents/Facture_F20200024_BASIC_gp.pdf (must be in the public folder).

url prop

The PDF path to view is in the url property :

class

You can add some styles with the class prop. Here we force the width to 1/2 :

height trick

You can set vertical size to the size of the screen with the tailwind css utility h-screen :

nocache

Add a nocache prop to avoid cache. A random number will be added to the PDF URL to limit caching issues.

rnd

DEPRECATED : use nocache prop

rnd prop to avoid cache. Set to a random number.

:ppw-pdfview{url="/documents/Facture_F20200024_BASIC_gp.pdf" rnd=333344}

TODO

  • how to control height ?