pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicholas Tiong <random...@gmail.com>
Subject Help with removing images from a PDF
Date Thu, 04 Oct 2012 01:25:30 GMT

I'm new here and I've just discovered PDFBox. My experience with coding is
fairly basic.

Based on a sample code I found here,

It seems that it should work for my purpose; that is to remove all images
from a PDF whilst preserving formatting. Basically I plan to print a large
document in black and white on a laser printer without pictures, and then
run it through a colour inkjet for the pictures.

Could anyone help me figure out why the code in the link above does not
work? It creates the 'stripped' file and throws no exceptions but all the
images are still within.

I've found another PDFBox code that extract images and saves it to file
which works for all individual pictures in the document, so I am certain the
PDF is formatted correctly with pictures embedded within it.

Any help would be much appreciated.

Nicholas Tiong

PS. Sorry if this is a duplicate, did not confirm my subscription before

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message