Input

book: Create a structured PDF document with headings, chapters, etc.
webpage: Specifies that the HTML sources are unstructured (plain web pages.) A page break is inserted between each file or URL in the output.
continuous: Specifies that the HTML sources are unstructured (plain web pages.) No page breaks are inserted between each file or URL in the output.
Title of the document for the front page.
Extract the first heading of the document and use it as title. If checked the title field has no effect.
The title image or HTML page. These file has to be an attachments!
Specify document version to be displayed on the title page.
Intellectual property owner of this document.
Copyright notice for this document.
Information about who and when modified the document are applied at the end.

Output

Specifies the output format.
Grayscale document  Title page
Compression :   JPEG big images 

Pagina

 
User defined page size 
Choose one of the predefined standard sizes or select user defined.
Specifies the page size using a standard name or in points (no suffix or ##x##pt), inches (##x##in), centimeters (##x##cm), or millimeters (##x##mm).
Set the target browser width in pixels (400-1200). This determines the page scaling of images.
   2-Sided   Landscape
   
   
   
Specifies the margin size using points (no suffix or ##x##pt), inches (##x##in), centimeters (##x##cm), or millimeters (##x##mm). Keep empty for default value.
Left
Middle
Right
Sets the page header to use on body pages.
Left
Middle
Right
Sets the page footer to use on body pages.

Indice

Sets the number of levels in the table-of-contents. Empty for unlimited levels.
   Numbered headings Check to number all of the headings in the document.
Sets the title for the table-of-contents. Empty for default title.
Left
Middle
Right
Sets the page header to use on table-of-contents pages.
Left
Middle
Right
Sets the page footer to use on table-of-contents pages.

Colors

Enter the HTML color for the body (background).
Enter the image file for the body (background). These file has to be an attachments!
Enter the HTML color for the text.
Sets the color of links.
Enables generation of links in PDF files.

Fonts

Set the default size of text.
Set the spacing between lines of text.
Choose the default typeface (font) of text.
Choose the default typeface (font) of headings.
Set the size of header and footer text.
Choose the font for header and footer text.
Change the encoding of the text in document.
Check to embed font in the output file.

PDF

Controls the initial viewing mode for the document.
Document: Displays only the docuemnt pages.
Outline: Display the table-of-contents outline as well as the document pages.
Full-screen: Displays pages on the whole screen; this mode is used primarily for presentations.
Controls the initial layout of document pages on the screen.
Single: Displays a single page at a time.
One column: Displays a single column of pages at a time.
Two column left/right: Display two columns of pages at a time; the first page is displayed in the left or right column as selected.
Choose the initial page that will be shown.

Security

Check to number all of the headings in the document.
 Versione stampabile   Modify
 Copy   Annotate
Specifies the document permissions.
Specifies the user password to restrict viewing permissions on this PDF document. Empty for no encryption.
Specifies the owner password to control who can change document permissions etc. If this field is left blank, a random 32-character password is generated so that no one can change the document.

Expert

Specify language to use for date and time format.
Shrink code blocks on page.
Show line numbers for code blocks.
Make spaces visable by dots (·) instead of white spaces.
Make line breaks visable by a extra character (¶) at the end.
Enable this feature if you searching for problems or intent to report a bug report

About

Version 2.4.2 (MoinMoin 1.9.7)


MoinMoin - Generate PDF document using HTMLDOC

This action script generate PDF documents from a Wiki site using
the HTMLDOC (http://www.htmldoc.org) software packages which has
to be preinstalled first.

Copy this script in your's MoinMoin action script plugin directory.

Thanks goes to Pascal Bauermeister who initiated the implementaion.
Lot of things changes since then but the idear using HTMLDOC is the
main concept of this implementation.

Please visit the homepage for further informations:
http://moinmo.in/ActionMarket/PdfAction

@copyright: (C) 2006 Pascal Bauermeister
@copyright: (C) 2006-2010 Raphael Bossek <raphael.bossek@solutions4linux.de>
@license: GNU GPL, see COPYING for details

       

Italiano English
Locked History Actions

HelpOnInstalling/Win32MoinEasyBackup

Easy Windows MoinMoin Backup

Backing up your wiki server is important, in case of an event like a hard drive crash. However, since the wiki maintains it's own built-in version control, we don't need to worry about a sophisticated rotating backup strategy. We just need the data files. A simple scheduled Windows .bat file script will do the trick.

Prerequisites & Requirements

  1. Download and install Microsoft's Windows Resource Kit Tools - While these tools say Windows 2003, they are backwards compatible. I successfully and routinely use these commands on Windows 2000 Workstation.

  2. We will be changing the extension of a file from .txt to .bat so it is important that you have "Show all file extensions" turned on.

Create a backup destination

We need a destination to copy these files. It should be a location separate from the server itself, so that you could quickly relocate the data to a new server if you need to. This could be a shared folder on a network computer, or an external USB drive. In the example below, I'm going to set up to back up to a networked volume. If you are using an external drive, simply substitute the drive letter (and, you get to skip the steps for creating a shared folder below).

Create a shared folder on a networked machine (different than your wiki server). The exact steps are beyond the scope of this document, but here's a few hints:

  1. Create a new folder, call it something appropriate like "wiki-backup". Avoid using spaces, as they can break the script.
  2. right-click on a new "wiki-backup" folder, select "sharing" and share the folder.
  3. On Windows XP, the default permissions are "read only". Remove the 'Everyone' group, and add a specific domain user such as domain\administrator (we'll use this user credentials below). Change the permissions to 'Full' for this user.
  4. Further secure the folder according to your network policy, if needed.

Create the Backup Script

We'll be using Robocopy from the Windows Resource Kit Tools that you installed from the Prerequisites section above. Robocopy is Microsoft's commandline utility that supercedes all prior versions of copy and xcopy commandline commands. Robocopy is abbreviated for Robust File Copy, and offers more copy options, more flexibility, fixes shortcomings in copy/xcopy (such as long pathname lengths), and of course offers better robustness. Inexplicably, it does not come with Windows.

  1. Using Notepad.exe or similar text editor, create a new file similar to below (you will have to modify the parameters to match your set-up (see Parameters Explained below)):
    d:\robocopy\robocopy.exe "d:\mywiki" "\\backupserver\wiki-backup\"  /LOG+:\\backupserver\logs\moin-backup.log /XF *.pyc /MIR /ndl /TEE /NP /R:10 /W:30s
  2. Save the file as "wiki-backup.bat" (make sure it doesn't have .txt, of course)

Parameters Explained:

Full Robocopy documentation can be found in the robocopy.doc included in the Resource Kit.

  • d:\robocopy\robocopy.exe - location of the robocopy.exe. (As in the example above, I typically move Robocopy somewhere more convenient (less typing, avoid using spaces).

  • "d:\mywiki" - source directory

  • "\\backupserver\wiki-backup\" - destination directory on a different networked machine.

  • /LOG+:\\backupserver\logs\moin-backup.log - running log of your backups (I typically have my backup scripts write their logs into a common folder on the backup server, so that I can easily check them all at once. If you mimic this script exactly, you will have to create another shared folder named 'logs' on the backupserver (and set permissions, like above)).

  • /XF *.pyc - exclude files ending in .pyc

  • /MIR - mirrors the destination to the source directory (this means that files/directories deleted in source will also be deleted in copy).

  • /ndl - logging option: turns off logging of directory names (will list full pathnames instead)

  • /TEE - displays output in the console window

  • /NP - suppresses copy progress indicator (% copied) (files are generally too small to bother with % copied, so I turn it off)

  • /R:10 - specifies the number of retries on failed copies (in this example, 10)

  • /W:30s - specifies the wait time between retries (the default is 30 seconds)

Automating (Scheduling) Backups

Of course, you'll want to make regular backups. Like, typically every night. ;-)

  1. Go to: Start > Settings > Control Panels > Scheduled Tasks

  2. Run the "Add Scheduled Task" wizard
    1. Click "Browse" and locate your .bat file you created above.
    2. Name the task ("wiki backup"), and set to run 'daily'. Pick a 'slow' time where fewer people will be using the wiki (like 5:00am).
    3. Set the username and password of the user who has rights to the backup folder (see step 3 in the "Create a backup destination" section above).

And, that's it! Run the script to make sure you have no syntax errors, and before long you'll have your first wiki backup! Check the log occasionally to make sure the scheduled task is running.