Hi,
sorry for the late answer...
Am 18.02.2012 11:55, schrieb Gert van Spijker:
I just signed up for this list, because I would like to start
contributing to PDFBox. Actually, I'd like to attack the problem with
the broken constructor:
PDPixelMap(PDDocument doc, BufferedImage awtImage)
In the comment I read: "This method is broken and needs to be
implemented, any takers?"
My answer to this question is: Yes why not, I'll give it a try..
We are using PDFBox in our prepress product, and I'd like to be able to
create a lossless image directly from a PDF without having to go through
JAI.
Welcome to our community
But before I start I have 2 questions:
1: Who is the current developer with the most knowledge about this bug?
I'd like to get as much information about the problem as possible.
We prefer to discuss everything on the dev mailing list, as all developers are
subscribed to it.
I guess the problem with the mentioned constructor was, that it simply didn't
work. If you like to (re)implement it you may consider the following
- read the pdf specs to find out how pixelmaps in pdfs are working
- have a look at PDPixelMap#getRGBImage, it does the decoding
- have a look at the implementation of PDJpeg#createImageStream, yours maybe
similar to it
2: I am using Eclipse for development, and checked out trunk through
SVN, but when letting it build through Eclipse auto build I stumble
across all the missing outside dependencies. I understand that using
Maven makes feature selection very simple, but can this be controlled
from inside Eclipse? for example by installing the Maven plugin?
Does anybody have any experience with building/debugging the PDF core
with Eclipse?
Just install the m2e plugin [1], that should do the trick.
BR
Andreas Lehmkühler
[1] http://www.eclipse.org/m2e