You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
200 lines
10 KiB
JavaScript
200 lines
10 KiB
JavaScript
XRW ??= {};
|
|
XRW.samples ??= {};
|
|
XRW.samples.render = [
|
|
`dY10`,
|
|
`dX20,f40,W140,Sbold,p?T=10,cText?r=13&g=179&b=204,Vconst?text=Rechnung`,
|
|
`W30,H30,Vimage?path=${encodeURI(`./supply/img/hwk_logo.png`)},N`,
|
|
`dY30,dX20,W170,H1,cFill?r=13&g=179&b=204,Vempty,N`,
|
|
`dY30,dX20,W170,B8,cDraw?r=13&g=179&b=204,Vempty,N`,
|
|
`dX20,p?T=2&R=2,f8,Aright,W80,cText?hex=#ff0000,Vconst?text=${encodeURI(`djask klasd\nasd sdfsdf\tsasisds\ndjlasld\n`)},N`,
|
|
`dX20,p?T=2&R=2,Aright,W80,cText?hex=#ff0000,Vconst?text=${encodeURI(`djask klasd\nasd sdfsdf\tsasisds\ndjlasld\n`)},N`,
|
|
`sY110`,
|
|
`dX100,p?T=2&R=2,Aright,W80,cText?hex=#ff0000,Vconst?text=${encodeURI(`djask klasd\nasd sdfsdf\tsasisds\ndjlasld\n`)},N`,
|
|
];
|
|
XRW.samples.renderNicola = [
|
|
// TO DO: blue lines instead of geray, colored footer bar is missing
|
|
`dY10`,
|
|
`dX20,f40,W140,Sbold,p?T=10,cText?hex=#05b0c6,Vconst?text=Rechnung`,
|
|
`W30,H30,Vimage?path=${encodeURI(`./supply/img/hwk_logo.png`)},N`,
|
|
`dY15,dX20,W170,B8,cDraw?hex=#05b0c6,Vempty,N`,
|
|
`dY8,dX20,Sbold,p?T=2&R=2,f10,W80,cText?hex=#000000,Vconst?text=${encodeURI(`Beispiel Firma`)},N`,
|
|
`dX20,Sitalic,p?T=2&R=2,f8,W80,cText?hex=#000000,Vconst?text=${encodeURI(`Am Wasser\n12345 Am Wasser\nTelefon: 020 123 45 67`)},N`,
|
|
`dY8,dX20,Sbold,p?T=2&R=2,f10,W80,cText?hex=#000000,Vconst?text=${encodeURI(`Beispiel Kunde`)},N`,
|
|
`dX20,Sitalic,p?T=1&R=2,f8,W80,cText?hex=#000000,Vconst?text=${encodeURI(`Am Berg 10\n98765 Am Berg\nDeutschland`)},N`,
|
|
|
|
`sY110`,
|
|
`dX95,dY-30,p?T=2&R=2,Aright,W80,cText?hex=#000000,Vconst?text=Rechnungsdatum:,N`,
|
|
`sY110`,
|
|
`dX175,dY-30,p?T=2&R=2,W80,cText?hex=#000000,Vconst?text=${encodeURI(`23.06.2021`)},N`,
|
|
`sY115`,
|
|
`dX95,dY-30,p?T=2&R=2,Aright,W80,cText?hex=#000000,Vconst?text=${encodeURI(`Rechnungsnummer:`)},N`,
|
|
`sY115`,
|
|
`dX175,dY-30,p?T=2&R=2,W80,cText?hex=#000000,Vconst?text=${encodeURI(`1234`)},N`,
|
|
`sY120`,
|
|
`dX95,dY-30,p?T=2&R=2,Aright,W80,cText?hex=#000000,Vconst?text=${encodeURI(`Kundennummer:`)},N`,
|
|
`sY120`,
|
|
`dX175,dY-30,p?T=2&R=2,W80,cText?hex=#000000,Vconst?text=${encodeURI(`Kunde_1`)},N`,
|
|
`sY125`,
|
|
`dX95,dY-30,p?T=2&R=2,Aright,W80,cText?hex=#000000,Vconst?text=${encodeURI(`Zahlungsziel:`)},N`,
|
|
`sY125`,
|
|
`dX175,dY-30,p?T=2&R=2,W80,cText?hex=#000000,Vconst?text=${encodeURI(`14 Tage`)},N`,
|
|
`sY130`,
|
|
`dX95,Sbold,dY-30,p?T=2&R=2,Aright,W80,cText?hex=#000000,Vconst?text=${encodeURI(`Fälligkeitsdatum:`)},N`,
|
|
`sY130`,
|
|
`dX175,Sbold,dY-30,p?T=2&R=2,W80,cText?hex=#000000,Vconst?text=${encodeURI(`07.07.2021`)},N`,
|
|
|
|
`dX20,dY15,Sbold,p?T=1&R=2,f9,W80,cText?hex=#00000,Vconst?text=${encodeURI(`Zusätzliche Informationen`)},N`,
|
|
`dX20,p?T=1&R=2,f9,W80,cText?hex=#8c898a,Vconst?text=${encodeURI(`Bspw. Informationen zu Zahlungsbedingungen.`)},N`,
|
|
`dY8,dX20,W170,B8,cDraw?hex=#05b0c6,Vempty,N`,
|
|
|
|
`dX20,dY4,f9,pA,Sbold,cText?color=black,W44,Vconst?text=Bezeichnung`,
|
|
`f9,pA,Sbold,W15,Vconst?text=Anzahl`,
|
|
`f9,pA,Sbold,W15,Vconst?text=Einheit`,
|
|
`f9,pA,Sbold,W29,Acenter,Vconst?text=Einheitspreis`,
|
|
`f9,pA,Sbold,W15,Vconst?text=${encodeURI(`USt.%`)}`,
|
|
`f9,pA,Sbold,W20,Acenter,Vconst?text=USt.`,
|
|
`f9,pA,Sbold,W30,Acenter,Vconst?text=Gesamt,N`,
|
|
|
|
`dX22,dY4,f9,pA,W44,B8,cText?hex=#8c898a,cDraw?hex=#8c898a,p?T=2&B=2,Vconst?text=Dienstleistung`,
|
|
`f9,pA,W15,B8,p?T=2&B=2,Vconst?text=5`,
|
|
`f9,pA,W15,B8,p?T=2&B=2,Vconst?text=Std.`,
|
|
`f9,pA,W29,B8,Acenter,p?T=2&B=2,Vconst?text=${encodeURI(`60.00 €`)}`,
|
|
`f9,pA,W15,B8,p?T=2&B=2,Vconst?text=${encodeURI(`19%`)}`,
|
|
`f9,pA,W20,B8,Acenter,p?T=2&B=2,Vconst?text=${encodeURI(`60.00 €`)}`,
|
|
`f9,pA,W30,B8,Acenter,p?T=2&B=2,Vconst?text=${encodeURI(`300.00 €`)},N`,
|
|
|
|
`dX22,dY4,f9,pA,W44,B8,cText?hex=#8c898a,cDraw?hex=#8c898a,p?T=2&B=4,Vconst?text=Produkt`,
|
|
`f9,pA,W15,B8,p?T=2&B=4,Vconst?text=10`,
|
|
`f9,pA,W15,B8,p?T=2&B=4,Vconst?text=Sck.`,
|
|
`f9,pA,W29,B8,Acenter,p?T=2&B=4,Vconst?text=${encodeURI(`105.00 €`)}`,
|
|
`f9,pA,W15,B8,p?T=2&B=2,Vconst?text=${encodeURI(`19%`)}`,
|
|
`f9,pA,W20,B8,Acenter,p?T=2&B=4,Vconst?text=${encodeURI(`210.00 €`)}`,
|
|
`f9,pA,W30,B8,Acenter,p?T=2&B=4,Vconst?text=${encodeURI(`1 050.00 €`)},N`,
|
|
|
|
`sY180`,
|
|
`dX130,p?T=2&R=2,Aright,W29,cText?hex=#000000,Vconst?text=Nettobetrag`,
|
|
`p?T=2&R=2,W25,Aright,cText?hex=#000000,Vconst?text=${encodeURI(`1 350.00 €`)},N`,
|
|
`dX130,dY2,p?T=2&R=2,Aright,W29,cText?hex=#000000,Vconst?text=Umsatzsteuer`,
|
|
`p?T=2&R=2,W25,Aright,cText?hex=#000000,Vconst?text=${encodeURI(`256.50 €`)},N`,
|
|
`dX130,dY2,p?T=2&R=2,Aright,W29,cText?hex=#05b0c6,Vconst?text=Rechnungsbetrag`,
|
|
`p?T=2&R=2,W25,Aright,cText?hex=#05b0c6,Vconst?text=${encodeURI(`1 606.50 €`)},N`,
|
|
|
|
`dY63,dX20,W170,B8,cDraw?hex=#8c898a,Vempty,N`,
|
|
`dX20,dY5,Sbold,p?T=1&R=2,f7,W56,cText?hex=#000000,Vconst?text=Beispiel Firma`,
|
|
`dX5,Sbold,p?T=1&R=2,f7,W56,cText?hex=#00000,Vconst?text=Kontaktinformationen`,
|
|
`dX8,Sbold,p?T=1&R=2,f7,W56,cText?hex=#00000,Vconst?text=Bankverbindung,N`,
|
|
`dX20,dY2,f7,W56,cText?hex=#8c898a,Vconst?text=Am Wasser 100`,
|
|
`dX5,f7,W56,cText?hex=#8c898a,Vconst?text=Kontaktperson`,
|
|
`dX8,f7,W20,cText?hex=#8c898a,Vconst?text=Bank`,
|
|
`f7,W28,cText?hex=#8c898a,Vconst?text=Sparkasse Wasser,N`,
|
|
`dX20,dY1,f7,W56,cText?hex=#8c898a,Vconst?text=12345 Am Wasser`,
|
|
`dX5,f7,W56,cText?hex=#8c898a,Vconst?text=Telefon: 020 123 45 67`,
|
|
`dX8,f7,W20,cText?hex=#8c898a,Vconst?text=IBAN`,
|
|
`f7,W28,cText?hex=#8c898a,Vconst?text=DE2341124098234,N`,
|
|
`dX20,dY1,f7,W56,cText?hex=#8c898a,Vconst?text=Deutschland`,
|
|
`dX5,f7,W56,cText?hex=#8c898a,Vconst?text=E-Mail: kontaktperson@firma.de`,
|
|
`dX8,f7,W20,cText?hex=#8c898a,Vconst?text=BIC`,
|
|
`f7,W28,cText?hex=#8c898a,Vconst?text=DEHHCXX1001,N`,
|
|
`dX20,dY1,f7,W56,cText?hex=#8c898a,Vempty`,
|
|
`dX5,f7,W56,cText?hex=#8c898a,Vconst?text=www.beispielfirma.de`,
|
|
`dX5,f7,W28,cText?hex=#8c898a,Vempty`,
|
|
`f7,W28,cText?hex=#8c898a,Vempty,N`,
|
|
// bar at end:
|
|
// `sY289,pA,W210,cFill?hex=#05b0c6,cDraw?hex=#05b0c6,f7,H8,B1,Vempty,N`,
|
|
`sY289,pA,W210,cFill?hex=#05b0c6,cDraw?hex=#05b0c6,f7,H8,B15,Vempty,N`,
|
|
];
|
|
XRW.samples.render_org = [
|
|
`f20,W210,cFill?color=#f4d9d3,p?T=4&B=4,B12,Acenter,Vconst?text=${encodeURI(`Hello fine World!`)},N`,
|
|
`dY20`,
|
|
`f12,p?L=2,B8,W80,cText?r=255,Vconst?text=${encodeURI(`Title!\ndjask klasd\n\tasdasdasidaisds\ndj aklsdjlasld\n`)}`,
|
|
`dX50,p?T=2&R=2,B32,Aright,W80,cText?hex=#ff0000,Vconst?text=${encodeURI(`djask klasd\nasd sdfsdf\tsasisds\ndjlasld\n`)},N`,
|
|
`dY20,cText?color=black`,
|
|
`dX40,W40,H40,Vimage?path=${encodeURI(`./supply/img/hwk_logo.png`)},N`,
|
|
`dY20,dX10,cFill?hex=#f4d9d2,f10,pA,Sbold,W50,B32,Vconst?text=4711`,
|
|
`W40,cFill?hex=#f4d9d3,f7,pA,B32,Vconst?text=${encodeURI(`Cell 2\nIncreases size\nextremely\n\n!`)}`,
|
|
`W80,cFill?hex=#f4d9d4,f7,pA,B32,Vconst?text=${encodeURI(`Cell 3`)},N`,
|
|
`dX10,cText?r=100,f12,Sitalic,pA,W50,B32,Vconst?text=${encodeURI(`Test`)}`,
|
|
`pA,W40,cFill?hex=#f4d9d3,f7,pA,B32,Vempty,N`,
|
|
`sY30,sX0,W210,f80,Sopacity?T=0.2,Acenter,cText?b=255,Vconst?text=${encodeURI(`M U S T E R`)},N`,
|
|
];
|
|
XRW.samples.render2 = [
|
|
"sY8,B4,W210,Vempty,N",
|
|
"f12,Sitalic,p?T=2,dX5,W80,Vconst?text=Hallo",
|
|
"f10,Sbold,p?T=3,W120,Aright,Vconst?text=Hallo,N",
|
|
"pT2,W205,Aright,Vconst?text=Hallo,N",
|
|
"B8,W210,Vempty,N",
|
|
"dY10",
|
|
"f16,pB1,B8,Acenter,W210,cText&ff0000,Vconst?text=Hasdllo,N",
|
|
"dY20",
|
|
"dX10,cFill?hex=#f4d9d2,f7,pA,W50,B32,Vconst?text=Haldlo",
|
|
"pA,W40,cFill?hex=#f4d9d3,f7,pA,B32,Vconst?text=Halaalo",
|
|
"W80,cFill?hex=#f4d9d4,f7,pA,B32,Vconst?text=Hallo,N",
|
|
"dX10,pA,W50,B3,Vempty",
|
|
"pA,W40,B32,Vempty",
|
|
"pA,W30,B32,Vconst?text=Hallo",
|
|
"pA,W50,B32,Vempty,N",
|
|
"dX10,pA,W50,B11,dR1,Jcenter,Vconst?text=Hallo",
|
|
"pA,W40,B32,Vconst?text=Hallo",
|
|
"pA,W30,B32,Vconst?text=Hallo",
|
|
"pA,W50,B32,Vconst?text=Hallo,N",
|
|
"dX10,pA,W50,B3,Vempty",
|
|
"W40,B32,Vempty",
|
|
"pA,W30,B3,Vempty",
|
|
"pA,W50,B32,Vconst?text=Hallo,N",
|
|
"dX10,pA,W50,B3,Vempty",
|
|
"pA,f6,W40,B32,cText&2020ee,Acenter,Vconst?text=Hallo",
|
|
"pA,W30,B11,dR1,Jcenter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Fill?hex=#dddddd,Vempty",
|
|
"p?R=60,f6,W40,cFill?hex=#ddddde,Vconst?text=Hallo,N",
|
|
"p?L=10,W50,B8,Vempty",
|
|
"pA,W40,B8,Vconst?text=Hallo",
|
|
"pA,W80,B8,Vempty",
|
|
"p?R=60,W40,B8,Vconst?text=Hallo,N",
|
|
"p?L=10,W50,B8,Vconst?text=Hallo",
|
|
"pA,W40,B8,Vempty",
|
|
"pA,W80,B8,cFill?hex=#ffff00,Vconst?text=Hallo",
|
|
"p?R=60,W40,B8,Vconst?text=Hallo,N",
|
|
];
|
|
|
|
XRW.samples.jsonWiki = {
|
|
first_name: "John",
|
|
last_name: "Smith",
|
|
CV: `LEBENSLAUF:\n1980-heute\tProgrammierer\n`,
|
|
is_alive: true,
|
|
age: 27,
|
|
address: {
|
|
street_address: "21 2nd Street",
|
|
city: "New York",
|
|
state: "NY",
|
|
postal_code: "10021-3100"
|
|
},
|
|
phone_numbers: [
|
|
{
|
|
type: "home",
|
|
number: "212 555-1234"
|
|
},
|
|
{
|
|
type: "office",
|
|
number: "646 555-4567"
|
|
},
|
|
{
|
|
type: "mobile",
|
|
number: "+49 172 555 4567"
|
|
}
|
|
],
|
|
children: [
|
|
"Catherine",
|
|
"Thomas",
|
|
"Trevor"
|
|
],
|
|
spouse: null,
|
|
};
|