Jump to content

PDFs without additional software?


Jewtus
 Share

Go to solution Solved by Gianni,

Recommended Posts

I was wondering if anyone knew a way to create PDF files without needing to have an additional program on the machine (most tutorials/UDFs talk about 3rd party tools like www.autoitscript.com/forum/topic/160875-debenu-quick-pdf-library-udf/). 

I'm wondering if there is a way to use an adobe object (EX ObjCreate("AcroPDF.PDF.1")) or even with word/ppt/internet explorer/other standard windows tools.

Anyone know if this is a possibly? If so, please point me in the right direction.

Link to comment
Share on other sites

  • Moderators

With Word (from the help file) just use _Word_DocSaveAs and change the file type parameter:

#include <Word.au3>
$sPath = @DesktopDir & "\My.doc"

$oWord = _Word_Create()
$oDoc = _Word_DocOpen($oWord, $sPath)
Sleep(2000)

_Word_DocSaveAs($oDoc, @DesktopDir & "\My.pdf", $WdFormatPDF)
Sleep(2000)
_Word_Quit($oWord)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

or even with word/ppt/internet explorer/other standard windows tools.

 

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...