0

My goal is just to have a simple square box around text and a table. For this I read to use the mdframed package. I did this and it all worked well when previewing it in Sumatra. I am now finished with my document and opened it in Adobe Acrobat. When previewing it in Adobe the top lien of the mdframed is just missing. There it is only when using 70,4% scaling. When going to 100% all lines are there but the bottom and right ones are thicker than the top and left (see pictures attached). 100% scaling 70,4% scaling When I want to print it, its the same. I tried the \mdfdefinestyle command with linewidth= 1.5pt. This helped from disappearing but it nevertheless wasn't the same on all sides.

LaTeX-Code:

    \begin{mdframed}%[style=dick]
        \textbf{_Text_}
    _Text_

    % gepunktete Linien
    \setlength\dashlinedash{1.5pt}
    \setlength\dashlinegap{2pt}
    \setlength\arrayrulewidth{0.3pt}

    \vspace{0.7cm}

    \begin{tabularx}{\textwidth}{XX}
        \hdashline
        Ort und Datum & Unterschrift des Prüfungsteilnehmers\\
    \end{tabularx}
\end{mdframed}

Thank you very much in advance!

thunermay
  • 163
  • 6

1 Answers1

1

Thanks to @Ulrike Fischer I solved the issue.

When using [framemethod=tikz] when importing mdframed, I can scale the PDF in Adobe to any percent without any issue.

MWE:

\documentclass{article}

\usepackage[linewidth=1pt, framemethod=tikz]{mdframed}

\begin{document} \begin{mdframed} This a wonderful test! \end{mdframed} \end{document}

This looks bad in the preview of TeXworks but in Adobe Acrobat and Sumatra this is no problem.

thunermay
  • 163
  • 6