Jump to content

Printed page title with multiple lines?


2 replies to this topic

#1 jag

  • Members
  • 533 posts
  • LocationStockholm, Sweden

Posted 04 January 2016 - 10:07 PM

Is it possible to have the printed pages' title to have multiple lines?

I am of course referring to the printer.setPageTitle() function.

See my example below:

Posted Image

Posted Image

The first image is just a screenshot whereas the second one is altered to showcase how I want it to be. Is this possible, and if so how do I do it?

#2 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 05 January 2016 - 12:08 AM

I first thought you could stick a newline character (\n) into the title. No, that doesn't work.

Attached Image: Printing newline in printed page title.png

#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 06 January 2016 - 03:25 AM

It's blatant cheating, but cPrint lets you do this... sorta.

It's a trick: printed books (like any other object) can have a "lore" tag set that adds a line under their name. cPrint lets you set this lore tag, whereas regular printers do not.

There's an example of how to do this in the instructions. The most obvious problem is that you need to be an OP to print books this way.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users