generate qrcode externally, needs python qrcode and pillow
This commit is contained in:
@@ -6,15 +6,18 @@
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{ebgaramond}
|
||||
|
||||
\usepackage{pstricks}
|
||||
\usepackage{pst-barcode}
|
||||
\usepackage{graphicx}
|
||||
|
||||
|
||||
\usetikzlibrary{fadings}
|
||||
% \tikzfading[name=fade right, left color=transparent!0, right color=transparent!100]
|
||||
% \tikzfading[name=fade in, inner color=transparent!200, outer color=transparent!0]
|
||||
|
||||
% \pgfdeclareradialshading{ellipse}{\pgfpoint{50bp}{50bp}}{
|
||||
\pgfdeclareradialshading{ellipse}{\pgfpoint{100bp}{100bp}}{
|
||||
color(0bp)=(pgftransparent!100);
|
||||
color(25bp)=(pgftransparent!100);
|
||||
color(50bp)=(pgftransparent!80);
|
||||
color(75bp)=(pgftransparent!00);
|
||||
color(100bp)=(pgftransparent!0)}
|
||||
|
||||
\pgfdeclarehorizontalshading{FOne}{100bp} {
|
||||
color(0bp)=(pgftransparent!0);
|
||||
color(25bp)=(pgftransparent!0);
|
||||
@@ -28,12 +31,15 @@
|
||||
\begin{document}
|
||||
\begin{tikzpicture}[overlay,remember picture]
|
||||
\node[anchor=east,inner sep=0pt] (pic) at (current page.east)
|
||||
{\includegraphics[height=\pdfpageheight]{GAO_9361_01}};
|
||||
% {\includegraphics[height=\pdfpageheight]{GAO_9361_01}};
|
||||
{\includegraphics[height=\pdfpageheight]{027-028}};
|
||||
% \fill[white,path fading=fade right] (pic.north west) rectangle (pic.south east);
|
||||
\fill[white,path fading=myfading] (pic.north west) rectangle (pic.south east);
|
||||
\coordinate (pin) at (12,-2.5);
|
||||
% \coordinate (pin) at (12,-2.5);
|
||||
% \filldraw[ultra thick,draw=red,fill=red!50] (pin) -- ++(70:.5) arc (-20:200:.18) -- cycle;
|
||||
% \path (pin) -- ++(0,.5) node[draw,fill,red,circle,inner sep=1pt] {};
|
||||
\node[anchor=south east, inner sep=0pt] (qr) at (pic.south east)
|
||||
{\includegraphics[height=2.8cm]{qr}};
|
||||
\end{tikzpicture}%
|
||||
|
||||
\obeylines%
|
||||
@@ -50,7 +56,7 @@
|
||||
Nam and Huong
|
||||
}
|
||||
|
||||
% \vfill
|
||||
\vfill
|
||||
{\addfontfeatures{Scale=1.4,LetterSpace=5}\scshape when?}
|
||||
\textit{%
|
||||
March 1\/\rlap{,}\textsuperscript{st} 2020
|
||||
@@ -66,16 +72,4 @@
|
||||
Hai Duong City, Hai Duong
|
||||
}
|
||||
|
||||
\begin{pspicture}(2in,2in)
|
||||
\psbarcode{BEGIN:VCALENDAR^^J%
|
||||
VERSION:2.0^^J%
|
||||
BEGIN:VEVENT^^J%
|
||||
SUMMARY:Wedding Nam-Huong^^J%
|
||||
LOCATION:Auco Convention Center, Haiduong, Haiduong^^J%
|
||||
DTSTART;TZID=Asia/Saigon:20200301T160000^^J%
|
||||
END:VEVENT^^J%
|
||||
END:VCALENDAR}
|
||||
{qrcode}
|
||||
\end{pspicture}
|
||||
|
||||
\end{document}
|
||||
|
||||
Reference in New Issue
Block a user