pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@free.fr
Subject Problem with line annotation
Date Fri, 03 Apr 2015 15:19:53 GMT
Hello,

I can't make line annotations work. Here's my code.


private void createAnnotation(PDPage pdPage) throws IOException {

		PDAnnotationLine line = new PDAnnotationLine();
		float[] floatArray = { 30f, 700f, 204f, 700f };
		line.setLine(floatArray);

		PDGamma colourRed = new PDGamma();
		colourRed.setR(1);

		line.setColour(colourRed);
		BoundingBox box = new BoundingBox(0f, 750f, 0f, 750f);
		PDRectangle rect = new PDRectangle(box);
		line.setRectangle(rect);
		line.setPage(pdPage);

	}


In the generated PDF with a text editor, there isn't any /Type Annot command.

Many thanks.

Philippe

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message