I come out with a new HD Video Tutorial!
📎 AI Summary:
The thread discusses methods to create PDFs in Windows, with the original poster sharing a video tutorial. Subsequent comments praise the tutorial's clarity and mention how Windows 10 now simplifies conversions, with one user suggesting that Microsoft Print to PDF is a sufficient built-in solution. Another contributor shares a PowerShell script requiring Word for conversion, highlighting different approaches, while overall the sentiment is positive, emphasizing Windows 10's improved ease of converting documents to PDF.
The thread discusses methods to create PDFs in Windows, with the original poster sharing a video tutorial. Subsequent comments praise the tutorial's clarity and mention how Windows 10 now simplifies conversions, with one user suggesting that Microsoft Print to PDF is a sufficient built-in solution. Another contributor shares a PowerShell script requiring Word for conversion, highlighting different approaches, while overall the sentiment is positive, emphasizing Windows 10's improved ease of converting documents to PDF.
- Joined
- Jul 4, 2015
- Messages
- 8,995
I don't think there is really a way to convert to PDF without some application. Lets do it with Powershell, cuz I like Powershell. This method requires word to be installed...
This is not my code, it's from the scripting guy. It could easily be modified to make it more dynamic. Hey, Scripting Guy! How Can I Convert Word Files to PDF Files? - Hey, Scripting Guy! Blog - Site Home - TechNet Blogs
http://blogs.technet.com/b/heyscrip...ow-can-i-convert-word-files-to-pdf-files.aspx
This is not my code, it's from the scripting guy. It could easily be modified to make it more dynamic. Hey, Scripting Guy! How Can I Convert Word Files to PDF Files? - Hey, Scripting Guy! Blog - Site Home - TechNet Blogs
http://blogs.technet.com/b/heyscrip...ow-can-i-convert-word-files-to-pdf-files.aspx
Code:
$wdFormatPDF = 17
$word = New-Object -ComObject word.application
$word.visible = $false
$folderpath = "c:\fso\*"
$fileTypes = "*.docx","*doc"
Get-ChildItem -path $folderpath -include $fileTypes |
foreach-object `
{
$path = ($_.fullname).substring(0,($_.FullName).lastindexOf("."))
"Converting $path to pdf ..."
$doc = $word.documents.open($_.fullname)
$doc.saveas([ref] $path, [ref]$wdFormatPDF)
$doc.close()
}
$word.Quit()