Aller au contenu principal Aide Panneau de contrôle

A+   A-

Logiciel serveur «  

Documentation : articles/fetch_as_pdf.php

articles/fetch_as_pdf.php - Download one article as a PDF file

Following restrictions apply while accepting the query:
  • anonymous users can see only active articles (the 'active' field == 'Y')
  • members can see active and restricted articles ('active field == 'Y' or 'R')
  • associates and editors can see all articles


If following features are enabled, this script will use them:
  • compression - using gzip
  • cache - supported through ETag and by setting Content-Length; Also, Cache-Control enables caching for some time, even through HTTPS


Restrictions apply on this page:
  • associates and editors are allowed to move forward
  • creator is allowed to view the page
  • permission is denied if the anchor is not viewable
  • article is restricted ('active' field == 'R'), but the surfer is an authenticated member
  • public access is allowed ('active' field == 'Y')
  • permission denied is the default


The downloaded object is always cacheable, to avoid IE to remove it too early from temporary directory.

Accept following invocations:
  • fetch_as_pdf.php/12
  • fetch_as_pdf.php?id=12


This script is a reference file of this system.

Voir aussi :

Licence : GNU Lesser General Public License

Auteurs :

Reste à faire

  • allow for a configurable footer string


tn