fixing pdf not having number of slides attached
This commit is contained in:
parent
ac13d675a0
commit
b1eef88c8a
1 changed files with 4 additions and 5 deletions
|
@ -337,15 +337,14 @@ Item {
|
|||
|
||||
function addPres(url) {
|
||||
console.log(pdf.status);
|
||||
console.log("FILE IS: " + url);
|
||||
let pageCount = 1;
|
||||
|
||||
if (url.endsWith(".pdf")) {
|
||||
pdf.source = url;
|
||||
while (pdf.status != 2) {
|
||||
console.log(pdf.status);
|
||||
console.log("PAGECOUNT: " + pdf.pageCount);
|
||||
pageCount = pdf.pageCount;
|
||||
}
|
||||
console.log(pdf.status);
|
||||
console.log("PAGECOUNT: " + pdf.pageCount);
|
||||
pageCount = pdf.pageCount;
|
||||
} else
|
||||
pageCount = 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue