I'm looking for an automatic way to crop out the white space surrounding an image in a PDF document.
I often write papers using Latex for which the images are saved as individual .pdf files. However, when collaborating, I need to use Word since that program is known by most. Unfortunatley, the final paper requires the conversion from Word to Latex.
I wrote a VBA code in Word that grabs all of the images, scales them to 100%, paste them into a powerpoint slide, and then save the slide as a PDF. My next step is to automatically remove the white space that now surrounds the image. I can write the code in VB.net and then call it from the VBA.
My current method for removing the white space is to load the file in Adobe Pro, choose the crop option, use arrows to place a box around the image, choose the crop command, and then save. My hope is that set of commands can be accomplished through command line arguments but so for, I have yet to figure them out.
I often write papers using Latex for which the images are saved as individual .pdf files. However, when collaborating, I need to use Word since that program is known by most. Unfortunatley, the final paper requires the conversion from Word to Latex.
I wrote a VBA code in Word that grabs all of the images, scales them to 100%, paste them into a powerpoint slide, and then save the slide as a PDF. My next step is to automatically remove the white space that now surrounds the image. I can write the code in VB.net and then call it from the VBA.
My current method for removing the white space is to load the file in Adobe Pro, choose the crop option, use arrows to place a box around the image, choose the crop command, and then save. My hope is that set of commands can be accomplished through command line arguments but so for, I have yet to figure them out.