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

txt 和 doc格式可以打印;PDF无法打印 #7

Open
TianSC7 opened this issue May 9, 2023 · 6 comments
Open

txt 和 doc格式可以打印;PDF无法打印 #7

TianSC7 opened this issue May 9, 2023 · 6 comments

Comments

@TianSC7
Copy link

TianSC7 commented May 9, 2023

您好;遇到一些问题;PDF无法打印
在file里面有一个log,内容如下:

Starting SumatraPDF, GetCommandLineW():

"C:\inetpub\wwwroot\bin\SumatraPDF.exe" -print-to-default -silent -print-settings "1x," -appdata "C:\inetpub\wwwroot\file" "C:\inetpub\wwwroot\file\05-09_07-24-33_728477473.pdf"

prefs::Load() took 0.32 ms

ParseTranslationsTxt: 19181 lines, nStrings: 357

@dutysok
Copy link

dutysok commented May 9, 2023 via email

@TianSC7
Copy link
Author

TianSC7 commented May 9, 2023 via email

@NewFuture
Copy link
Owner

SumatraPDF 替换过没有?
在机器上直接执行

"C:\inetpub\wwwroot\bin\SumatraPDF.exe" -print-to-default -silent -print-settings "1x," -appdata "C:\inetpub\wwwroot\file" "C:\inetpub\wwwroot\file\05-09_07-24-33_728477473.pdf"

可以打印吗?

@TianSC7
Copy link
Author

TianSC7 commented Sep 20, 2023 via email

@ysoc
Copy link

ysoc commented Sep 25, 2023

记事本打开Default.aspx.cs 209行改成: param = string.Format("-print-to-default -silent -print-settings "{0}x,{1}" "{2}"", copies, range, path); 就可以了,记得看一下SumatraPDF.exe的大小,1kb是错的(github打包下载的问题),使用ghproxy.com/https://github.com/NewFuture/WebPrint/blob/master/bin/SumatraPDF.exe重新下载替换掉

@ysoc
Copy link

ysoc commented Sep 25, 2023

反斜杠没了,文件里自己补吧

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

4 participants