Re: Problem with line annotation

2015-04-03 Thread Tilman Hausherr
Hi, There's no connection between the page and the annotation object. Please look at the AddAnnotations example, that one does this: List annotations = page.getAnnotations(); annotations.add(...) There may be more... in your next post, please mention the version. Tilman Am 03.04.2015 um 1

Problem with line annotation

2015-04-03 Thread phiroc
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);