Forum How do I...?

PDF Pop-up element

JohnClarke
I noticed that you have included a small "P" logo on the top right corner of pages generated from a demo version of Price. If you hover over the image you get a standard PDF pop-up. Is it now possible to add pop-ups like this? If so how do we do it? (Couldn't find the documentation) -John

John Clarke
Cornerstone Systems Northwest Inc.

mikeday
Prince doesn't yet have support for adding arbitrary PDF annotations, although it might be a useful feature to add at some point in the future. It will require adding a bunch of new Prince-specific CSS properties to specify the annotation text, position, icon, etc.
StoneCypher
You could always cheat, and do something cheap and ugly like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

  <head>

    <style type="text/css" media="screen,projection,print">

      @page { 
        background-image: url("30x60.png"); 
        background-repeat: no-repeat; 
        background-position: 95% 5%; 
      }

      p { page-break-after: always; }

    </style>

  </head>


  <body>

    <p>Hello, I am a page.</p>
    <p>Hello, I am a page.</p>
    <p>Hello, I am a page.</p>
    <p>Hello, I am a page.</p>
    <p>Hello, I am a page.</p>

  </body>

</html>

John Haugeland is http://fullof.bs/

afingret
I'd like to second the motion for annotation support - even something very simple to start that would work with the display: block - display: none thing.
mikeday
I've added this issue to the development roadmap for Prince 7.0.