Changes between Version 22 and Version 23 of TracWikiPrintPlugin


Ignore:
Timestamp:
Nov 24, 2009 6:18:30 PM (5 years ago)
Author:
JasonWinnebeck
Comment:

Also, per #6254, the server must not require HTTP authentication when connecting

Legend:

Unmodified
Added
Removed
Modified
  • TracWikiPrintPlugin

    v22 v23  
    7676!WikiPrint exports the wiki format to HTML first, then converts the HTML to PDF using xhtml2pdf library. Links and image references in the wiki to html conversion are made as absolute URLS. 
    7777 
    78 In order to generate the PDF, ''xhtml2pdf'' library will try to download the images from their absolute URL (exactly as your web browser would do). The ''xhtml2pdf'' library is given a temporary cookie to authenticate in behave of the user, so the conversion process will have the same permissions as the user downloading the .pdf, but '''you must make sure that the project URL is accessible locally from the trac server itself'''. 
     78In order to generate the PDF, ''xhtml2pdf'' library will try to download the images from their absolute URL (exactly as your web browser would do). The ''xhtml2pdf'' library is given a temporary cookie to authenticate in behave of the user, so the conversion process will have the same permissions as the user downloading the .pdf, but '''you must make sure that the project URL is accessible locally from the trac server itself'''. Also, per #6254, the server must not require HTTP authentication when connecting (Trac must be configured use the "login" link). 
    7979 
    8080For example, if you access the trac project from your browser using the URL http://myserver/trac/myproject, but address of ''myserver'' is locally resolved at your workstation (via /etc/hosts or similar), and not globally known, then ''xhtml2pdf'' will fail to resolve ''myserver'' and won't be able to download the images from http://myserver/trac/myproject/. In that case, use the server IP instead.