Skip to content

Commit c0bcb6f

Browse files
committed
update PDF addon usage in vue.md
1 parent e8e0199 commit c0bcb6f

File tree

1 file changed

+6
-4
lines changed
  • _articles/indepth/development

1 file changed

+6
-4
lines changed

_articles/indepth/development/vue.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ export default {
164164
* Note:
165165
* This following line of code uses the PDF Rasterizer which is an extra add-on that is licensed separately
166166
*/
167-
this.DWTObject.Addon.PDF.SetConvertMode(
168-
Dynamsoft.DWT.EnumDWT_ConvertMode.CM_RENDERALL
169-
);
167+
this.DWTObject.Addon.PDF.SetReaderOptions({
168+
convertMode: Dynamsoft.DWT.EnumDWT_ConvertMode.CM_RENDERALL
169+
});
170170
this.DWTObject.LoadImageEx(
171171
"",
172172
Dynamsoft.DWT.EnumDWT_ImageType.IT_ALL,
@@ -324,7 +324,9 @@ function openImage() {
324324
* Note:
325325
* This following line of code uses the PDF Rasterizer which is an extra add-on that is licensed separately
326326
*/
327-
DWTObject.Addon.PDF.SetConvertMode(Dynamsoft.DWT.EnumDWT_ConvertMode.CM_RENDERALL);
327+
DWTObject.Addon.PDF.SetReaderOptions({
328+
convertMode: Dynamsoft.DWT.EnumDWT_ConvertMode.CM_RENDERALL
329+
});
328330
DWTObject.LoadImageEx(
329331
"",
330332
Dynamsoft.DWT.EnumDWT_ImageType.IT_ALL,

0 commit comments

Comments
 (0)