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

Nimit

Well-Known Member
#1
I come out with a new HD Video Tutorial!
 


ussnorway

Windows Forum Team
Staff member
Premium Supporter
#2
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.
 


#3
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
#4
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


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
#5
Isn't the Microsoft Print to PDF good enough and comes with Win 10? Seems like a logical option :)
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.
Top