Problem with Generating PDF #115
Replies: 1 comment
-
I fix this issue by removing the vendor folder and reinstalling it by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my code:
and this is the error:
The command "node "C:\CODE\vendor\spatie\browsershot\src/../bin/browser.cjs" "{""url"":""file:\/\/C:\\Users\\aa\\AppData\\Local\\Temp\\1330383547-0228315001712516457\\index.html"",""action"":""pdf"",""options"":{""path"":""invoice.pdf"",""args"":[],""viewport"":{""width"":800,""height"":600},""displayHeaderFooter"":true,""headerTemplate"":""<div dir=\""rtl\"" style=\""miargin: 20px auto; padding: 20px 70px; width: 100"^%";\"">\r\n <div style=\""display: flex; justify-content: space-between; align-items: center;\"">\r\n <h1 style=\""font-size: 16px; font-weight: 700; width: 150px; text-align: center;\"">\u0645\u062c\u0645\u0648\u0639\u0629 \u062f\u0641\u0631\u0646\u062a \u0644\u062a\u0631\u0643\u064a\u0628 \u0627\u0644\u0627\u0646\u0627\u0631\u0629 \u0627\u0644\u062d\u062f\u064a\u062b\u0629<\/h1>\r\n \r\n \r\n <h1 style=\""font-size: 14px; font-weight: 700; width: 200px; text-align: center;\"">Different Group for Modern Lighting Installations<\/h1>\r\n <\/div>\r\n <hr style=\""border: 1px solid #DE9C55; width: 100"^%";\"">\r\n<\/div>"",""footerTemplate"":""<div style=\""padding: 0px 60px; font-size: 6px; width: 100"^%";\"">\r\n <hr style=\""border: 0.8px solid #DE9C55; width: 100"^%"; display: block\"">\r\n <div dir=\""rtl\"" style=\""display: flex; justify-content: space-between; item-align: center; \"">\r\n <div>\r\n <p>\u0627\u0644\u0641\u0631\u0639 \u0627\u0644\u0627\u0648\u0644: \u0627\u0644\u0628\u0635\u0631\u0629 - \u0634\u0627\u0631\u0639 \u0627\u0644\u0648\u0641\u0648\u062f - \u062a\u0642\u0627\u0637\u0639 \u062f\u0648\u064a\u062f<\/p>\r\n <p>\u0627\u0644\u0641\u0631\u0639 \u0627\u0644\u062b\u0627\u0646\u064a: \u0627\u0644\u0628\u0635\u0631\u0629 - \u0627\u0644\u062c\u0628\u064a\u0644\u0629 - \u0642\u0631\u0628 \u0645\u062f\u0627\u0631\u0633 \u062f\u0627\u0631 \u0627\u0644\u0645\u0639\u0627\u0631\u0641<\/p>\r\n <p>\u0639\u0644\u0645\u0627 \u0628\u0623\u0646 \u0627\u0644\u0627\u0633\u062a\u0631\u062c\u0627\u0639 \u0648\u0627\u0644\u0627\u0633\u062a\u0628\u062f\u0627\u0644 \u064a\u0643\u0648\u0646 \u062e\u0644\u0627\u0644 \u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062d\u062f \u0641\u0642\u0637 \u0645\u0646 \u062a\u0627\u0631\u064a\u062e \u0627\u0635\u062f\u0627\u0631 \u0647\u0630\u0647 \u0627\u0644\u0641\u0627\u062a\u0648\u0631\u0629<\/p>\r\n <\/div>\r\n <div dir=\""ltr\"">\r\n <p>@different__group<\/p>\r\n <p>0750 913 0132<\/p>\r\n <p>0770 566 6777<\/p>\r\n <\/div>\r\n <\/div>\r\n<\/div>"",""margin"":{""top"":""30mm"",""right"":""5mm"",""bottom"":""15mm"",""left"":""5mm""},""format"":""a4"",""landscape"":true,""printBackground"":true,""scale"":0.5}}"" failed. Exit Code: 1(General error) Working directory: C:\CODE\public Output: ================ Error Output: ================ 'node' is not recognized as an internal or external command, operable program or batch file.
Please need Help
Beta Was this translation helpful? Give feedback.
All reactions