Modify

Opened 8 years ago

Closed 8 years ago

#870 closed enhancement (wontfix)

PageToPdf use custom layout

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

Description

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 8 years ago.
"Printable HTML version" patch

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 years ago by anonymous

  • Trac Release changed from 0.9 to 0.10

comment:2 Changed 8 years ago by coderanger

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 8 years ago by anonymous

  • Cc carlos@… added; anonymous removed
  • Keywords backend layout custom added
  • Summary changed from PageToPdf use custom css? to 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 8 years ago by anonymous

"Printable HTML version" patch

comment:4 Changed 8 years ago by coderanger

  • Resolution set to wontfix
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Action
as closed The owner will remain athomas.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.