I have this code -
\documentclass{scrartcl}
\usepackage[banglamainfont=Akaash,banglattfont=Akaash]{latexbangla}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[dvipsnames]{xcolor}
\usepackage[object=vectorian]{pgfornament} % also loads tikz
\begin{document}
\tikzset{pgfornamentstyle/.style={draw = Periwinkle,
fill = SpringGreen}}
\begin{center}
\begin{tikzpicture}[every node/.append style={inner sep=0}]
\draw [Blue] (-5,-5) rectangle +(10,10);
\node [anchor=north west] at (-3,5) {\pgfornament[width=6cm]{71}};
\node [anchor=south west] at (-3,-5) {\pgfornament[width=6cm,,symmetry=h]{71}};
\node [anchor=north west] at (-5,5) {\pgfornament[width=2cm]{63}};
\node [anchor=north east] at (5,5) {\pgfornament[width=2cm,,symmetry=v]{63}};
\node [anchor=south west] at (-5,-5) {\pgfornament[width=2cm,,symmetry=h]{63}};
\node [anchor=south east] at (5,-5) {\pgfornament[width=2cm,,symmetry=c]{63}};
\node [anchor=south west,rotate=-90] at (-5,3) {\pgfornament[width=6cm]{46}};
\node [anchor=south west,rotate=90] at (5,-3) {\pgfornament[width=6cm]{46}};
\node [Maroon,font=\Huge\bfseries] at (0,0) {কিছু};
\node [anchor=south] at (0,0.5) {\pgfornament[width=5cm]{69}};
\node [anchor=north] at (0,-0.5) {\pgfornament[width=5cm,symmetry=c]{69}};
% \node [anchor=north east,rotate=-30] at (-1,2.5) {\pgfornament[width=2cm]{57}};
% \node [anchor=north west,rotate=30] at (1,2.5) {\pgfornament[width=2cm,symmetry=v]{57}};
\end{tikzpicture}
\end{center}
I want to change my documents so that when I add more text middle of the document(কিছু) the ornaments automatically shifted outer to free the space for the text.
Edit
See the following code and output -
\documentclass{scrartcl}
\usepackage[banglamainfont=Akaash,banglattfont=Akaash]{latexbangla}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[dvipsnames]{xcolor}
\usepackage[object=vectorian]{pgfornament} % also loads tikz
\begin{document}
\tikzset{pgfornamentstyle/.style={draw = Periwinkle,
fill = SpringGreen}}
\begin{center}
\begin{tikzpicture}[every node/.append style={inner sep=0}]
\draw [Blue] (-5,-5) rectangle +(10,10);
\node [anchor=north west] at (-3,5) {\pgfornament[width=6cm]{71}};
\node [anchor=south west] at (-3,-5) {\pgfornament[width=6cm,,symmetry=h]{71}};
\node [anchor=north west] at (-5,5) {\pgfornament[width=2cm]{63}};
\node [anchor=north east] at (5,5) {\pgfornament[width=2cm,,symmetry=v]{63}};
\node [anchor=south west] at (-5,-5) {\pgfornament[width=2cm,,symmetry=h]{63}};
\node [anchor=south east] at (5,-5) {\pgfornament[width=2cm,,symmetry=c]{63}};
\node [anchor=south west,rotate=-90] at (-5,3) {\pgfornament[width=6cm]{46}};
\node [anchor=south west,rotate=90] at (5,-3) {\pgfornament[width=6cm]{46}};
\node [Maroon,font=\huge] at (0,0) {
শিশুকে \begin{tabular}{ll}
&ভুল শেখাবেন না&সঠিক শেখাবেন।\\
&লোভ দেখাবেন না &পুরস্কার দেবেন \\
&নিরুৎসাহিত করেবন না&উৎসাহিত করেবন\\
&বকুনি দেবেন না&উপেদশ দেবেন \\
&বেয়াদব বলেবন না&আদব শেখাবেন \\
&নিঃসঙ্গ রাখবেন না&সৎসঙ্গ দেবেন \\
&ভয় দেখাবেন না&সাহস দেবেন \\
&লজ্জা দেবেন না& শিখিয়ে দেবেন \\
&ধমক দেবেন না&বুঝতে দেবেন \\
&মিথ্যা বলবেন না&সত্য বলবেন \\
&বেত্রাঘাত করবেন না &স্নেহ করবেন \\
&নিন্দা করেবন না&ভালবাসবেন \\
&অবেহলা করবেন না&গুরুত্ব দেবেন
&মাওলানা মুরশিদুল আলম , মুহতামিম\\
&জামিয়া আরাবিয়া হাজী ইউনুছ (কওমী মাদ্রাসা)\\
\end{tabular}
};
\node [anchor=south] at (0,0.5) {\pgfornament[width=5cm]{69}};
\node [anchor=north] at (0,-0.5) {\pgfornament[width=5cm,symmetry=c]{69}};
% \node [anchor=north east,rotate=-30] at (-1,2.5) {\pgfornament[width=2cm]{57}};
% \node [anchor=north west,rotate=30] at (1,2.5) {\pgfornament[width=2cm,symmetry=v]{57}};
\end{tikzpicture}
\end{center}
\end{document}
EDIT2
In my MWE I use the Bengali text because I make a Bangla documents with ornaments. But, you can use English. And, keep in mind that your solution should works for Bengali also.
May be helpful to answer this question Is there any method to create UML using LaTeX without giving (x,y) co-ordinate?