Opened 12 years ago

Closed 12 years ago

#870 closed enhancement (wontfix)

PageToPdf use custom layout

Reported by: slianoglou@… Owned by: Alec Thomas
Priority: normal Component: PageToPdfPlugin
Severity: normal Keywords: backend layout custom
Cc: carlos@… Trac Release: 0.10


I think it'd be helpful to enable the PageToPdf plugin to use some custom css file in order for it to ignore (set display: none) page elements that you don't want to be printed.

For instance, many pages may have a custom navigation section, and certainly a [[PageOutline]] which renders like the monkey when printed to PDF -- and most likely not wanted.

I find myself having to edit the page I want to print, cutting out my navigation and PageOutline, saving, d/ling as PDF, editing the page again to put the navigation etc. back in.

Attachments (1)

pagetopdf.diff (1.1 KB) - added by anonymous 12 years ago.
"Printable HTML version" patch

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by anonymous

Trac Release: 0.90.10

comment:2 Changed 12 years ago by Noah Kantrowitz

This is not possible as the backend used by PageToPdf (HTMLDOC) doesn't support CSS at all. The CombineWikiPlugin uses an explicit list of regexs to remove things like that.

comment:3 Changed 12 years ago by anonymous

Cc: carlos@… added; anonymous removed
Keywords: backend layout custom added
Summary: PageToPdf use custom css?PageToPdf use custom layout

I'm another anonymous. I'm sorry but that kind of boring plain PDF HTMLDOC generates is far from enough.

I was really hoping I could customize layout, colors, and all that stuff somehow (I don't bother if it's CSS or any other technology being used, as long as it's not exotic).

Use case for this: I am discussing requirements and spec. for a project with a client and want to generate a formal project charter to be agreed upon.

Changed 12 years ago by anonymous

Attachment: pagetopdf.diff added

"Printable HTML version" patch

comment:4 Changed 12 years ago by Noah Kantrowitz

Resolution: wontfix
Status: newclosed

A plain HTML format has been added to the CombineWikiPlugin, so you can use that and a PDF virtual printer to do what you need. Beyond that this is not going to be fixed as it is an issue with HTMLDOC.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Alec Thomas.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.