CPDFLinkAnnotation.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // CPDFAnnotationLink.h
  3. // ComPDFKit
  4. //
  5. // Copyright © 2014-2022 PDF Technologies, Inc. All Rights Reserved.
  6. //
  7. // THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
  8. // AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
  9. // UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
  10. // This notice may not be removed from this file.
  11. //
  12. #import <ComPDFKit/CPDFAnnotation.h>
  13. @class CPDFDestination;
  14. /**
  15. * A CPDFLinkAnnotation object represents either a hypertext link to another location in the document (specified as a CPDFDestination object) or a URL.
  16. */
  17. @interface CPDFLinkAnnotation : CPDFAnnotation
  18. /**
  19. * Gets the destination for the link when the destination was specified as a CPDFDestination object.
  20. *
  21. * @discussion Destination for the link. May be nil if no destination associated with link; in this case the -[URL] may be valid.
  22. */
  23. - (CPDFDestination *)destination;
  24. - (void)setDestination:(CPDFDestination *)destination;
  25. /**
  26. * Gets the destination for the link when the destination was specified as a URL.
  27. *
  28. * @discussion URL for the link. May be nil if no URL action associated with link; in this case the -[destination] may be valid.
  29. */
  30. - (NSString *)URL;
  31. - (void)setURL:(NSString *)url;
  32. @end