zeltox / Google-Drive-PDF-Downloader

MIT License
446 stars 124 forks source link

Error: Uncaught SyntaxError: Identifier 'doc' has already been declared #16

Open TBFTTH opened 2 years ago

TBFTTH commented 2 years ago

I'm in this situation. Before that, it was working normally. if I open the pdf file to a new tab and press f12 to run, it appears Uncaught SyntaxError: Identifier 'doc' has already been declared

NormanTrinh commented 2 years ago

I have same issue

neryabigon commented 2 years ago

same

xuanswe commented 1 year ago

1 week ago everything works but today I get this error. I changed the variable name to smt like aDoc, it works again.

Milian23 commented 1 year ago

1 week ago everything works but today I get this error. I changed the variable name to smt like , it works again.aDoc

Can you explain me please, I don't have enough knowledge to fix it myself, the error is with the word "doc" . I change the word "doc" to "aDoc" but I think that is not what you mean

xuanswe commented 1 year ago

I change the word "doc" to "aDoc" but I think that is not what you mean

You understand correctly what I mean :-).

I refactored let doc = ""; to let aDoc = "";

Not quite sure, but I guess new version of google drive now uses this variable name in their javascript source code, so we cannot use it again in the script.

Milian23 commented 1 year ago

okay thanks you and when i put it in the "input" folder and run the program it doesn't detect it, what have you done to fix it?

xuanswe commented 1 year ago

okay thanks you and when i put it in the "input" folder and run the program it doesn't detect it, what have you done to fix it?

I don't have any issue with the pdf generation. I am using Windows 10.

aleisteramich commented 1 year ago

Document.PDF_DataFile, Cannot decode line "1" as it contains invalid PNG Base64 data i do have this error.

Unorthodoxis-ui commented 1 year ago

Document.PDF_DataFile, Cannot decode line "1" as it contains invalid PNG Base64 data i do have this error.

I have the same error too.