VIDEO How To Convert Images/Texts to PDF In Windows 10 Without Apps

ussnorway

Windows Forum Team
Staff member
Joined
May 22, 2012
Messages
4,598
Well done! This tutorial has clear text to explain what you are doing.


P.S, The Microsoft print to pdf tool you use IS an app... as is the Reader app you then open them in.
 

HeraldP

Member
Joined
Dec 30, 2015
Messages
7
Very good tutorial. Many times I have spend too much time in converting texts and images into pdf and vice e versa, but windows 10 has made it quite easy.
Thank you.
 

Neemobeer

Windows Forum Team
Staff member
Joined
Jul 4, 2015
Messages
8,998
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

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()
 

Josephur

Windows Forum Admin
Staff member
Premium Supporter
Microsoft Certified Professional
Joined
Aug 3, 2010
Messages
1,289
Isn't the Microsoft Print to PDF good enough and comes with Win 10? Seems like a logical option :)
 

Back
Top