MegaZine3 Version 2 > Setup Support (MZ3 / HTML / ...)

print from gallery

(1/1)

isilmigliorati:
volevo sapere se è possibile inserire l'opzione della stampa a gallery aperta.
Voglio poter stampare un'immagine aperta con un "hires" da un area.
è possibile?
Se si, come devo procedere?

Hans Nücke:
Non è possibile stampare un'immagine aperta in fullscreen.
Ma se una foto sola è presente sulla pagina, si potrebbe stampare usande "print" nel <page> tag come:

--- Code: (xml) ---   <page print="it('../book/demo/it/jpgpng/img_h1.jpg');en('../book/demo/en/jpgpng/img_h2.png')">  
In questo esempio si potrebbe stampare due foto diverse, se si "abusa" la selezione della lingua per distinguere tra le due foto.

It is not possible to use the print lugin for a printout of a hires version of a gallery poto.
If there's only one photo on the page, the "print" element, places within the <page> tag could be used.
If you only have to support one language, with some tricks you could abuse the language chage to select more than one photo.
Like in this example:

--- Code: (xml) ---   <page print="p1('../book/demo/it/jpgpng/img_h1_1.jpg');p2('../book/demo/en/jpgpng/img_h1_2.jpg')">  Where you could print 2 different photos on that page, depending on what "language" is selected. In this example I use not existing language codes to differentiate the photoes (p1 and p2).
I'm not sure if it is worth the effort, since you had to create a full localized version of your book, with both "languages" pointing to the same content, but using the language to switch between the prints.
To not confuse your readers you also had to exhange the language icons (flags) and help texts.

This is just to give you an idea what all could be done with configuration only, but most probably it is easier to create your own plugin for that.
Or to add AS3 code to the asul file handling that.
The navigationbar.asul is a good example for what all is possible, since all logic/code is implemented within that asul file!

isilmigliorati:
grazie per il suggerimento.
Non sono brava a programmare, ma magari ci proverò...
Sarebbe comunque una plugin che sarebbe da inserire tra le nuove da creare.

Navigation

[0] Message Index

Go to full version