Hi

I’m quite new to PDFBox and trying to find my way around. I find the 
documentation to be a bit confusing as I cannot find a way to commit a multiply 
(blend mode) to the document. Here is an outtake of my current attempt although 
I must admit that I do not fully understand all the PDF and PDFBox concepts yet.

COSDictionary dictionary = pdfBoxDocument.getPage(1).getCOSObject();
PDExtendedGraphicsState pdExtGfxState = new PDExtendedGraphicsState(dictionary);
PDGraphicsState gfxState = new 
PDGraphicsState(pdfBoxDocument.getPage(1).getMediaBox());
gfxState.setBlendMode(BlendMode.MULTIPLY);
pdExtGfxState.copyIntoGraphicsState(gfxState);
SetGraphicsStateParameters gfxParameters = new SetGraphicsStateParameters();

Could someone tell me whether I’m on the right track or doing this all wrong?
How do I set the graphics state parameters to the documents objects?

Best regards,
Asgeir
---------------

[cid:[email protected]]

Asgeir Hølleland
Utvikler / Developer

Email: [email protected]<mailto:[email protected]>
Mobil: +47 979 69 083

Knowit Experience AS
Besøksadresse: Nøstegaten 58, 5011 Bergen
Postadresse: Pb 453 Sentrum, 5805 Bergen

Norge  |  Sverige  |  Finland  +47 55 33 39 00  | 
www.knowit.no<http://www.knowit.no/>

Reply via email to