Quantcast
Channel: Topic Tag: footer | WordPress.org
Viewing all articles
Browse latest Browse all 13545

Lewis Rosenthal on "[Plugin: WP Post to PDF Enhanced] PDF output customization"

$
0
0

Hi, Daniel, and apologies for my tardy follow-up...

1) I want to get rid of the HR or border that ends/starts the header and footer areas.

I will be adding an option in the admin UI to set the color of the separator lines (independent of one another). Ultimately, I will add a color picker. Expect the first incarnation of this to be a simple toggle for show/hide (black/white, essentially).

I have tested hiding the header line, so now it's just a matter of how to handle the footer, given that we have the custom footer functionality in the latest trunk builds. So, look for both of these options in the near future (and at some point, the ability to completely customize the header, but that's another matter).

2) I want to get rid of the pagination and replace it with some other info.

By "pagination," do you mean page numbering or something else?

As I mentioned, the current trunk builds allow for setting a custom footer. However, this does not allow for inserting TCPDF methods or other PHP code, but only plain text or HTML. I will be adding options for page numbering, such as (possibly):

  1. Default, with and without separator line (#/#);
  2. Custom text, e.g., page # of #;
  3. Positioning (L/R/C, T/B, custom);

If you mean "pagination" as in page breaks, you may manually paginate using the wpptopdfenh_break shortcode. Also, current trunk builds allow for selecting the paper size desired.

While most of these options are global (read: set in the admin UI, and apply to all PDFs rendered), the goal is to allow overrides with shortcodes, so while the default paper size is set to letter, for a particular page or post, one could use a shortcode (or perhaps a custom field) to set a special paper size just for a single page, say, memo or legal.

I know that you'd probably prefer to hear that all you need to do is x, y, and z, but as you can tell from looking over the docs for TCPDF, things are rarely that simple! LOL

Cheers, and thanks for checking in. ;-)

Lewis

PS - Check out some of the constants which you may define in tcpdf/config/tcpdf_config. You may be able to get some more of what you want by altering these. Just remember that the next upgrade to the plugin *will* overwrite this file, so be sure to back it up.


Viewing all articles
Browse latest Browse all 13545

Trending Articles