Add missing pagesCount getter to IPDFLinkService and SimpleLinkService

This commit is contained in:
Jonas Jenwald 2018-10-11 10:23:51 +02:00
parent 9e9426c354
commit df8d9f45f9
2 changed files with 15 additions and 0 deletions

View File

@ -20,6 +20,11 @@
* @interface
*/
class IPDFLinkService {
/**
* @returns {number}
*/
get pagesCount() {}
/**
* @returns {number}
*/

View File

@ -408,12 +408,22 @@ function isValidExplicitDestination(dest) {
return true;
}
/**
* @implements {IPDFLinkService}
*/
class SimpleLinkService {
constructor() {
this.externalLinkTarget = null;
this.externalLinkRel = null;
}
/**
* @returns {number}
*/
get pagesCount() {
return 0;
}
/**
* @returns {number}
*/