Skip navigation.
 
mlPDFAnnotationLine problem
FROM : Vince
DATE : Mon Feb 04 22:59:20 2008

I am trying to create annotations for pdf files using the 
PDFAnnotation routines.
PDFAnnotationSquare, PDFAnnotationCircle, and PDFAnnotationLink work 
fine.
But I am having problems with PDFAnnotationLine - regarding both the 
placement of the line as well as the lines thickness and style.

Is anyone aware of any bugs associated with PDFAnnotationLine?
Specifically, immediately upon creating a PDFAnnotationLine instance, 
the PDFBorder instance does not seem to be created.
I tested it with the following code:

   else if(annType == PSPDFSquare){
       newAnn = [[PDFAnnotationSquare    alloc] initWithBounds: bounds];
       if(![newAnn border]) NSLog(@"no border for square annotation 
immediately after creating it ");
   }else if(annType == PSPDFLine){
       newAnn = [[PDFAnnotationLine alloc] initWithBounds: bounds];
       if(![newAnn border]) NSLog(@"no border for line annotation 
immediately after creating it "); // ERROR ALWAYS HERE: BORDER NOT 
CREATED

There are not problems with using PDFAnnotation Square; but I always 
receive the error with PDFAnnotationLine.

Thank you for any assistance; I've spent quite a bit of time on this 
problem and couldn't find any solution in the documentation or on the 
web.
Best wishes,

Vince

Related mailsAuthorDate
mlPDFAnnotationLine problem Vince Feb 4, 22:59
mlRe: PDFAnnotationLine problem John Calhoun Feb 5, 02:40
mlRe: PDFAnnotationLine problem John Calhoun Feb 5, 03:59
mlRe: PDFAnnotationLine problem John Calhoun Feb 5, 04:04
mlRe: PDFAnnotationLine problem Vince Feb 5, 16:16
mlRe: PDFAnnotationLine problem Antonio Nunes Feb 5, 19:01
mlRe: PDFAnnotationLine problem Vince Feb 5, 20:08
mlRe: PDFAnnotationLine problem John Calhoun Feb 6, 00:30
mlRe: PDFAnnotationLine problem John Calhoun Feb 6, 00:32