Hi,
how do I get the Switch-Stats-Values in NodeJS?
Greeting
Michael
Stats.NumberOfPages
Re: Stats.NumberOfPages
Hi Michael,
Switch 2021 Spring will bring PdfDocument and PdfPage Classes.
getNumberOfPages( ) is what you need.
It will be released on May 27th.
Switch 2021 Spring will bring PdfDocument and PdfPage Classes.
getNumberOfPages( ) is what you need.
It will be released on May 27th.
Laurent De Wilde, Solution Architect @ Enfocus
Re: Stats.NumberOfPages
Hi Laurentd,
today ist May 27th, System requirements is uptodate, but I can't download 2021 spring. I would like to update my Switch-Dev-Version
today ist May 27th, System requirements is uptodate, but I can't download 2021 spring. I would like to update my Switch-Dev-Version
Re: Stats.NumberOfPages
Hi Michael,
The mail about Switch 2021 Spring has been sent an hour ago.
https://www.enfocus.com/en/support/rele ... ease-notes
The mail about Switch 2021 Spring has been sent an hour ago.
https://www.enfocus.com/en/support/rele ... ease-notes
Laurent De Wilde, Solution Architect @ Enfocus
Re: Stats.NumberOfPages
Looking to get the Width and Height of the PDF Document. I have upgraded to Switch Fall 2021 my node script has be written previous to PdfDocument being added to Spring 2021.
What do I need to do to update my script as it is not reconising PdfDocument as a class?
My nodejs version is 14.15.0
What do I need to do to update my script as it is not reconising PdfDocument as a class?
My nodejs version is 14.15.0
Re: Stats.NumberOfPages
Here is an example how to use PdfDocument and PdfPage classes on our EnfocusSW GitHub:
https://github.com/EnfocusSW/PdfProperties
https://github.com/EnfocusSW/PdfProperties
Laurent De Wilde, Solution Architect @ Enfocus
Re: Stats.NumberOfPages
Thanks Laurentd,
But from what can figure out my script is using verion 1.0.1 of types-switch-scripting, To update to fall 2021 I think I should be using version 21.1.0. What is the best way to update this without writing the script again?
But from what can figure out my script is using verion 1.0.1 of types-switch-scripting, To update to fall 2021 I think I should be using version 21.1.0. What is the best way to update this without writing the script again?
Re: Stats.NumberOfPages
The PdfDocument and PdfPage classes were introduced with Switch 2021 Spring.
This will update the type definition:
npm i @types/switch-scripting@1.1.0
This will update the type definition:
npm i @types/switch-scripting@1.1.0
Laurent De Wilde, Solution Architect @ Enfocus
Re: Stats.NumberOfPages
Thanks Laurentd,
Really appreciate the replies.
I received an error '@types/switch-scripting@1.1.0' is not in the npm registry.
I just had to change npm i @types/switch-scripting@1.1.0
to
npm i @types/switch-scripting and it updated fine.
Really appreciate the replies.
I received an error '@types/switch-scripting@1.1.0' is not in the npm registry.
I just had to change npm i @types/switch-scripting@1.1.0
to
npm i @types/switch-scripting and it updated fine.