Source

adjustbox / test.tex

Full commit
\documentclass[a4paper]{article}
\usepackage[]{xcolor}
\usepackage[]{adjustbox}
\listfiles
\fboxsep=0pt
\parskip=1cm

\def\tbox#1#2{%
    \detokenize{#1}: \rlap{\hbox{\trimbox{#1}{#2}}}\hbox{\clipbox{#1}{\textcolor{green}{#2}}}%
}
\begin{document}
\ttfamily
{
none:~~\fbox{\Huge Ag}

\tbox {0 0 0 0}{\Huge Ag}

\tbox {1pt 1pt 1pt 1pt}{\Huge Ag}

\tbox {1pt {\depth+5pt} 1pt 1pt}{\Huge Ag}

\tbox {1pt {\depth+5pt} 1pt 1pt}{\Huge Ag}

\tbox {1pt 12pt 1pt 01pt}{\Huge Ag}

\tbox {1pt 1pt 10pt 10pt}{\Huge Ag}



adjust:\fbox{\adjustbox{trim=10pt 1pt 1pt 1pt,angle=10}{\Huge Ag}}

\fbox{{%
\begin{clipbox}{1 1 1 1}
    CLIP ME! \clipbox{4 0 0 0}{A}
    \begin{clipbox}{0 0 0 2}
        B
    \end{clipbox}
\end{clipbox}
}}

\fbox{{%
\begin{trimbox}{1 1 1 1}
    TRIM ME! \trimbox{4 0 0 0}{A}
    \begin{trimbox}{0 0 3 2}%
        B%
    \end{trimbox}C
\end{trimbox}
}}

\fbox{{%
\begin{clipbox}{1 1 1 1}
    CLIP ME! \clipbox{4 0 0 0}{A}
    \begin{trimbox}{0 0 3 2}%
        B%
    \end{trimbox}C
\end{clipbox}
}}
}

\end{document}