Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TBFTTH opened this issue Jun 11, 2022 · 9 comments
Open

Comments

@TBFTTH
Copy link

TBFTTH commented Jun 11, 2022

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
Copy link

I have same issue

@neryabigon
Copy link

same

@xuanswe
Copy link

xuanswe commented Jun 2, 2023

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

@Milian23
Copy link

Milian23 commented Jun 5, 2023

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
Copy link

xuanswe commented Jun 5, 2023

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
Copy link

Milian23 commented Jun 6, 2023

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
Copy link

xuanswe commented Jun 6, 2023

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
Copy link

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

@Unorthodoxis-ui
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants