• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
PDFAnnotationLine problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PDFAnnotationLine problem


  • Subject: PDFAnnotationLine problem
  • From: Vince <email@hidden>
  • Date: Mon, 4 Feb 2008 16:59:20 -0500

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
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: PDFAnnotationLine problem
      • From: John Calhoun <email@hidden>
    • Re: PDFAnnotationLine problem
      • From: John Calhoun <email@hidden>
  • Prev by Date: Re: Use of Mac OS X 10.5 / Leopards Garbage Collection Considered Harmful
  • Next by Date: [Leopard] SUBQUERY predicate with CoreData
  • Previous by thread: Re: Use of Mac OS X 10.5 / Leopards Garbage Collection Considered Harmful
  • Next by thread: Re: PDFAnnotationLine problem
  • Index(es):
    • Date
    • Thread