This code for Notepad in post - \documentclass{beamer} or standalone: poster-layout: background and boxes

now i want to change to \documentclass{article} and can resize dimension of box (width, height): set specific width, height (cm)

Minimal code from this above link

\documentclass{article}
\usepackage[a5paper,landscape,left=1.5cm,right=0.3cm,top=0.5cm,bottom=0.5cm]{geometry}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage[pages=some]{background}

\backgroundsetup{
scale=1,
color=black,
opacity=0.4,
angle=0,
contents={%
\includegraphics[width=\paperwidth,height=\paperheight]{example-image}
}%
}

\definecolor{mybrown}{RGB}{33,34,28}
\definecolor{myyellow}{RGB}{242,226,149}
\definecolor{mygreen}{RGB}{176,232,145}
\definecolor{myblue}{RGB}{61,139,189}
\definecolor{myorange}{RGB}{245,156,74}
\definecolor{mypurple}{RGB}{230,111,148}
\definecolor{myred}{RGB}{215,80,50}

\begin{tikzpicture}
(0,0) {[rounded corners=1.5cm]--
++(10,0)} --
++(0,10) --
++(-10,0) --
cycle;
\fill[#2!80!black]
(9,0) to[out=30,in=-70]
(9.35,0.75) to[out=-30,in=210]
(10,1) to[out=240,in=30]
(9,0);
\fill[mybrown]
\fill[mybrown!40]
\node[
cylinder,
fill=mybrown,
rotate=#1,
minimum width=10pt,
minimum height=18pt
]
at (5,9.52) {};
\node[text width=9cm,minimum height=8cm] at (5,5)
{#3};
\end{tikzpicture}%
}

\begin{document}

\end{document}


pgf keys have been invented in order to allow you to control the parameters of your shape (or whatever). TeX macros with some mandatory parameters do not help to achieve this. So I would recommend rewriting the notepad as a style and setting some initial values of the parameters which you can change as you want, if needed. This MWE stores the notepad parameters in a notepad directory, and I hope you find the example sort of self-explanatory.

\documentclass{article}
\usepackage[a5paper,landscape,left=1.5cm,right=0.3cm,top=0.5cm,bottom=0.5cm]{geometry}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage[pages=some]{background}

\backgroundsetup{
scale=1,
color=black,
opacity=0.4,
angle=0,
contents={%
\includegraphics[width=\paperwidth,height=\paperheight]{example-image}
}%
}

\definecolor{mybrown}{RGB}{33,34,28}
\definecolor{myyellow}{RGB}{242,226,149}
\definecolor{mygreen}{RGB}{176,232,145}
\definecolor{myblue}{RGB}{61,139,189}
\definecolor{myorange}{RGB}{245,156,74}
\definecolor{mypurple}{RGB}{230,111,148}
\definecolor{myred}{RGB}{215,80,50}

(path picture bounding box.south west) {[rounded corners=1.5cm]--
(path picture bounding box.south east)} --
(path picture bounding box.north east) --
(path picture bounding box.north west) --
cycle;
\fill[mycolor!80!black]
([xshift=-1cm]path picture bounding box.south east) to[out=30,in=-70]
++(0.35,0.75) to[out=-30,in=210]
([yshift=1cm]path picture bounding box.south east) to[out=240,in=30]
([xshift=-1cm]path picture bounding box.south east);
\fill[mybrown]
([yshift=-5mm]path picture bounding box.north) circle [radius=0.25cm];
\fill[mybrown!40]
([yshift=-5mm]path picture bounding box.north) circle [radius=0.20cm];
\draw[line width=3mm,line cap=round]
([yshift=-5mm]path picture bounding box.north) -- ++
color/.initial=blue,
pin rotation/.initial=100,
width/.initial=5cm,
height/.initial=9cm
}

\begin{document}


• @latexforti What do you mean by "absolute position"? (You can do something like \tikz[overlay,remember picture[{\node[notepad,notepad/color=myyellow] at (current page.center) {111Some test text};} if that's what you mean. Note that I didn't read the original post.... now I did. Why are you not using the tcolorbox version. This seems to be much better than the plain TikZ version, and allows you to adjust the width and so on.) – marmot Mar 26 at 0:10