priPrinter: Automatically Print - priPrinter

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Automatically Print How to write a script to auto print document to printer

#1 User is offline   zachroberts 

  • Member
  • PipPip
  • Group: Senior Members
  • Posts: 19
  • Joined: 19-January 16

Posted 11 October 2017 - 01:51 PM

Hello I need help creating a script that will auto print my documents after it applies the theme and other text such as date and user info.

Thanks,
Zach
0

#2 User is offline   Aron 

  • priPrinter Support
  • Group: Administrators
  • Posts: 132
  • Joined: 28-February 10

Posted 12 October 2017 - 04:56 PM

Something like this:

layout.ApplyTheme("a4.xml");
local m=layout.CreateMarkup("string");
m.text="Example";
m.pos=Point(0.5,0.5);
m.angle=45;
m.color=Color(0,0,0);

local f=m.font;
f.height=72;
f.name="Verdana";
m.font=f;
m.outline=true;
m.alpha=0.4;
layout.Print({dialog=false});

0

#3 User is offline   zachroberts 

  • Member
  • PipPip
  • Group: Senior Members
  • Posts: 19
  • Joined: 19-January 16

Posted 16 October 2017 - 02:46 PM

View PostAron, on 12 October 2017 - 04:56 PM, said:

Something like this:

layout.ApplyTheme("a4.xml");
local m=layout.CreateMarkup("string");
m.text="Example";
m.pos=Point(0.5,0.5);
m.angle=45;
m.color=Color(0,0,0);

local f=m.font;
f.height=72;
f.name="Verdana";
m.font=f;
m.outline=true;
m.alpha=0.4;
layout.Print({dialog=false});



Thank you, do scripts not run in unlicensed versions?

Thanks,
Zach
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users