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

Discussion in 'Windows 10 Tutorials' started by Nimit, Oct 11, 2015.

  1. Nimit

    Nimit Well-Known Member

    Joined:
    Feb 20, 2015
    Messages:
    138
    Likes Received:
    10
    I come out with a new HD Video Tutorial!
     
    ussnorway likes this.
  2. ussnorway

    ussnorway Windows Forum Team
    Staff Member Premium Supporter

    Joined:
    May 22, 2012
    Messages:
    2,541
    Likes Received:
    318
    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. HeraldP

    HeraldP Member

    Joined:
    Dec 30, 2015
    Messages:
    7
    Likes Received:
    1
    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.
     
  4. Neemobeer

    Neemobeer Windows Forum Team
    Staff Member

    Joined:
    Jul 4, 2015
    Messages:
    2,418
    Likes Received:
    366
    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()
     
  5. Josephur

    Josephur Windows Forum Admin
    Staff Member Premium Supporter

    Joined:
    Aug 3, 2010
    Messages:
    1,019
    Likes Received:
    125
    Isn't the Microsoft Print to PDF good enough and comes with Win 10? Seems like a logical option :)
     

Share This Page

Loading...