I have a chart in PDF format, which had been cropped to have no margin using pdfcrop
Months later, I realized that I need to add X- and Y- axis labels. Because I don't have the original script to generate the figure, I edited the PDF by adding a narrow margin to the left- and bottom corners:
pdfcrop --margin '20 0 0 20' fig_tight_cropped.pdf fig_with_axis_labels.pdf
And then edited the PDF and added the X and Y labels (using Mac's preview tool)
However, when I put them in a latex file, PDFLatex makes them appear exactly the same and ignores the added margin in the second file.
Here is the minimum working example:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h!]
\includegraphics{fig_tight_crop.pdf}
\includegraphics{fig_with_axis_labels.pdf}
\end{figure}
\end{document}
And the output looks like this:
How can I make the margins appear? Why does it disappear in the first place?
P.S. Here are the figures with and without the margin: