Lesson 6.3: PDF exports
Some content has to leave the site as a document: a handbook, a price list, a printed newsletter. A PDF export makes one PDF from a part of the tree. This lesson shows editors how an export is set up and kept current.
At a glance
| Course | Editors 201 |
| Module | Module 6: Addresses, feeds and PDF |
| Duration | 45 minutes (15 presenting, 30 exercise) |
| Level | Intermediate |
| Audience | Editors who produce documents from site content |
| Prerequisites | Lesson 6.2; a role with the pdf/edit policy for the exercise |
Learning objectives
After this lesson, learners can:
- explain what a PDF export contains: a source node, and for a tree the nodes below it of the ticked classes;
- choose between Generate once and on the fly and explain the trade-off;
- create an export with New PDF export, download it and Regenerate it;
- explain why a stored PDF is public and what that means for its content and file name.
Trainer's notes
How to present it
Source: PDF exports.
- What it makes (3 minutes). One PDF of a source node: its name as the first heading, then its fields. A tree export adds the nodes below it, at every level, but only those of the classes you tick. A node of an unticked class is left out with everything below it, so tick the folders as well as the articles.
- Once or on the fly (3 minutes). Generated once: the PDF is written when the export is saved and again with Regenerate; fast, but it shows the content as it was then. On the fly: made anew at every download; always current, slower for a large tree.
- The page (4 minutes). Setup > PDF export (
/pdf/list), with thepdf/editpolicy (Administrator has it): PDF exports (n), Overview, Find an export, cards with Download, Regenerate and Edit, New PDF export and Remove selected. - The form (3 minutes). Title (not printed), Content (source node with Browse, Node or Tree and the classes), Frontpage (optional first page), Footer text, Export type and File name; then OK. Errors are listed at the top with a link to their field.
- Public files (2 minutes). A stored PDF is public at its address, for anybody. Use on the fly for content that is not for everybody, and never a file name you would not want guessed.
Common questions
Why does my PDF contain only the first page? A tree without classes, or the folders between the source and the articles are not ticked.
Why does my stored PDF show old content? It was generated once; press Regenerate.
Can visitors download an on-the-fly PDF? Only users with the pdf/edit policy, through the download address.
Pitfalls
- Missing permission. Editors usually lack
pdf/edit. Give the training role the policy or demonstrate. - Private content in a stored PDF. It becomes public. Do not export members-only content as a stored PDF.
- Large trees on the fly. They time out; switch them to generated once.
Hands-on exercise
Use the training installation with a role that has the pdf/edit policy (the trainer arranged it, or follows the
steps on the projector).
- Open Setup > PDF export. Read the Overview.
- Press New PDF export.
- Title:
Course folder <your name>. - Under Content, press Browse and choose your course folder. Choose Tree and tick Folder and Article.
- Under Frontpage, type a large line
My courseand a smaller line with today's date. - Choose Generate once and the file name
course-<your-first-name>.pdf. Press OK. - On the list, read your card: the badges, the source node, Contains, the stored file with its size.
- Press Download and open the PDF. Find your articles.
- Change the title of one article in your course folder and publish. Download again: the PDF still has the old title. Press Regenerate and download again.
- Tick your export and press Remove selected; read the confirmation (it names the stored file) and confirm.
Expected result
- A PDF with a front page and the learner's folder and articles was created, downloaded and regenerated.
- Step 9 showed the difference between the stored file and the current content.
- The export and its file are removed after step 10; the content is untouched.
- The trainer checks by downloading one learner's PDF on the projector before step 10.

Quiz
- What does a Tree export contain?
- What is the difference between generated once and on the fly?
- Your stored PDF shows an old title. What do you press? A. Download B. Regenerate C. Edit D. Remove selected
- Why should members-only content not be exported as a stored PDF?
- Which policy does the PDF export page need?
Answers
- The source node and the nodes below it of the ticked classes (PDF exports).
- Generated once writes a stored file when saved (fast, can be out of date); on the fly makes the PDF at every download (always current, slower).
- B.
- A stored PDF is public at its address for anybody.
pdf/edit.
Further reading
- PDF exports: the page, the form and the problems.
- PDF export: what changed in this release.
Related pages
- Module 6: Addresses, feeds and PDF
- Editors 201: course overview
- Trainers: start here
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.