@tato30/vue-pdf
Advanced tools
Comparing version
@@ -14,2 +14,3 @@ import type { AnnotationEventPayload } from '../types'; | ||
annotation: (payload: AnnotationEventPayload) => void; | ||
annotationLoaded: (payload: any[]) => void; | ||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{ | ||
@@ -27,2 +28,3 @@ page?: import("pdfjs-dist/types/src/display/api").PDFPageProxy | undefined; | ||
onAnnotation?: ((payload: AnnotationEventPayload) => any) | undefined; | ||
onAnnotationLoaded?: ((payload: any[]) => any) | undefined; | ||
}, {}, {}>; | ||
@@ -29,0 +31,0 @@ export default _default; |
@@ -1,2 +0,2 @@ | ||
import type { HighlightEventPayload, HighlightOptions } from '../types'; | ||
import type { HighlightEventPayload, HighlightOptions, TextLayerLoadedEventPayload } from '../types'; | ||
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{ | ||
@@ -9,2 +9,3 @@ page?: import("pdfjs-dist/types/src/display/api").PDFPageProxy | undefined; | ||
highlight: (payload: HighlightEventPayload) => void; | ||
textLoaded: (payload: TextLayerLoadedEventPayload) => void; | ||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{ | ||
@@ -17,2 +18,3 @@ page?: import("pdfjs-dist/types/src/display/api").PDFPageProxy | undefined; | ||
onHighlight?: ((payload: HighlightEventPayload) => any) | undefined; | ||
onTextLoaded?: ((payload: TextLayerLoadedEventPayload) => any) | undefined; | ||
}, {}, {}>; | ||
@@ -19,0 +21,0 @@ export default _default; |
@@ -5,7 +5,11 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{ | ||
viewport?: import("pdfjs-dist/types/src/display/display_utils").PageViewport | undefined; | ||
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{ | ||
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { | ||
xfaLoaded: () => void; | ||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{ | ||
page?: import("pdfjs-dist/types/src/display/api").PDFPageProxy | undefined; | ||
document?: import("pdfjs-dist/types/src/display/api").PDFDocumentProxy | undefined; | ||
viewport?: import("pdfjs-dist/types/src/display/display_utils").PageViewport | undefined; | ||
}>>>, {}, {}>; | ||
}>>> & { | ||
onXfaLoaded?: (() => any) | undefined; | ||
}, {}, {}>; | ||
export default _default; | ||
@@ -12,0 +16,0 @@ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; |
@@ -27,2 +27,6 @@ import type { PageViewport } from 'pdfjs-dist'; | ||
} | ||
export interface TextLayerLoadedEventPayload { | ||
textDivs: HTMLElement[]; | ||
textContent: TextContent | undefined; | ||
} | ||
export interface WatermarkOptions { | ||
@@ -29,0 +33,0 @@ columns?: number; |
import 'pdfjs-dist/web/pdf_viewer.css'; | ||
import type { AnnotationEventPayload, HighlightEventPayload, HighlightOptions, WatermarkOptions } from './types'; | ||
import type { AnnotationEventPayload, HighlightEventPayload, HighlightOptions, TextLayerLoadedEventPayload, WatermarkOptions } from './types'; | ||
declare function reload(): void; | ||
@@ -35,2 +35,5 @@ declare function cancel(): void; | ||
loaded: (payload: import("pdfjs-dist/types/src/display/display_utils").PageViewport) => void; | ||
textLoaded: (payload: TextLayerLoadedEventPayload) => void; | ||
annotationLoaded: (payload: any[]) => void; | ||
xfaLoaded: () => void; | ||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{ | ||
@@ -61,3 +64,6 @@ pdf?: import("pdfjs-dist/types/src/display/api").PDFDocumentLoadingTask | undefined; | ||
onAnnotation?: ((payload: AnnotationEventPayload) => any) | undefined; | ||
onAnnotationLoaded?: ((payload: any[]) => any) | undefined; | ||
onHighlight?: ((payload: HighlightEventPayload) => any) | undefined; | ||
onTextLoaded?: ((payload: TextLayerLoadedEventPayload) => any) | undefined; | ||
onXfaLoaded?: (() => any) | undefined; | ||
onLoaded?: ((payload: import("pdfjs-dist/types/src/display/display_utils").PageViewport) => any) | undefined; | ||
@@ -64,0 +70,0 @@ }, { |
{ | ||
"name": "@tato30/vue-pdf", | ||
"version": "1.9.4", | ||
"description": "PDF viewer for Vue 3", | ||
"version": "1.9.5", | ||
"description": "PDF component for Vue 3", | ||
"author": { | ||
@@ -54,3 +54,3 @@ "name": "Aldo Hernandez", | ||
"dependencies": { | ||
"pdfjs-dist": "3.7.107" | ||
"pdfjs-dist": "3.11.174" | ||
}, | ||
@@ -57,0 +57,0 @@ "devDependencies": { |
@@ -19,3 +19,3 @@ <div align="center"> | ||
<div align="center"> | ||
<h2><a href="https://tato30.github.io/VuePDF/">đź“–Documentation</a></h2> | ||
<h2><a href="https://tato30.github.io/vue-pdf/">đź“–Documentation</a></h2> | ||
</div> | ||
@@ -126,2 +126,2 @@ | ||
npm run dev | ||
``` | ||
``` |
@@ -38,2 +38,7 @@ import type { PageViewport } from 'pdfjs-dist' | ||
export interface TextLayerLoadedEventPayload { | ||
textDivs: HTMLElement[] | ||
textContent: TextContent | undefined | ||
} | ||
export interface WatermarkOptions { | ||
@@ -40,0 +45,0 @@ columns?: number |
@@ -73,3 +73,3 @@ import * as PDFJS from 'pdfjs-dist' | ||
const attachments = (await doc.getAttachments()) as Record<string, unknown> | ||
const javascript = await doc.getJavaScript() | ||
const javascript = await doc.getJSActions() | ||
const outline = await doc.getOutline() | ||
@@ -76,0 +76,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3054793
2.51%13514
2.42%126
0.8%+ Added
- Removed
Updated