Forum How do I...?

PDF Pop-up element

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.

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.
You could always cheat, and do something cheap and ugly like this:



    <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; }




    <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>



John Haugeland is

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.
I've added this issue to the development roadmap for Prince 7.0.
It took a little longer than that but the latest builds now support PDF text annotations! :D