我想不使用软件包或LibreOffice将JPG转换为PDF。我使用PowerShell,我在这里找到了JPG到PDF与MS打印到PDF:https://community.spiceworks.com/topic/2233896-powershell-convert-jpg-to-pdf-using-pdf-printer,但当运行时,它显示窗口,我必须手动文件的全名。我想自动填充,但还没有找到一种方法。希望大家帮助我。
我用了passthru但是没有效果。还没有找到任何
我想不使用软件包或LibreOffice将JPG转换为PDF。我使用PowerShell,我在这里找到了JPG到PDF与MS打印到PDF:https://community.spiceworks.com/topic/2233896-powershell-convert-jpg-to-pdf-using-pdf-printer,但当运行时,它显示窗口,我必须手动文件的全名。我想自动填充,但还没有找到一种方法。希望大家帮助我。
我用了passthru但是没有效果。还没有找到任何
1条答案
按热度按时间3wabscal1#
如果你只是在寻找输入文件的路径,那么你可以在
Get-childitem
部分硬编码你的完整路径来改变它。改变文件路径到任何你想要的输入文件路径和文件名,你应该很好。我已经在同一行添加了一个注解供你参考。