User Tools

Site Tools


dynamicmessages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dynamicmessages [2013/11/04 11:44] – vicdynamicmessages [2026/06/22 12:14] (current) – external edit 127.0.0.1
Line 176: Line 176:
  
 Gamevar is executed third. Gamevar is executed third.
 +
 +====Used to generate PDF's====
 +You can use the same formatting as for dynamic messages to pass text to ExecWritePDF.
 +However there is a big difference here. Only text and picture type are implemented at moment. 
 +
 +For positioning of text you can only optionally specify x and y. [x][/x] and [y][/y] and position x,y is not the real position. position x is the offset from the left margin. position y is the offset from the previous element and is reset if new page is used. 
 +
 +For position of images you can also use width. To make sure a small image is sharp enough. If ommited it will be maximized to page width. Height is derived from your width specified. If an image is to wide or high to fit on a page it will be scaled automaticly.
 +
 +The whole process is one of just rendering one element under another and creating new pages whenever necc. 
 +
 +The pixel system is also different as your pages (excluding margin) are 475 x 682. A good font size is between 10-12 for text. Images are as sharp as their original is.
 +
 +One extra type of element is available when using ExecWritePDF and that is [type]pagebreak[/type]. Guess you know what it will do :)
 +
 +Title and page number are rendered on each page automaticly as sort of watermarks.
 +
 +===Pagebreak===
 +You can use the [element][type]pagebreak[/type][/element] as already explained.
 +You can specify a background image here... it will always be strectched to full page width & height which is: 595x842. 
 +You specify this image by adding [image]graphics/...jpg[/image] . These graphics will only temporary be loaded into memory. And you can change them for each page.
 +Furthermore if your first element is a pagebreak it will not cause a blank page, but will use the image specified for the background of the first page.
 +
dynamicmessages.1383565466.txt.gz · Last modified: 2026/06/22 12:13 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki