Jump to content
Sign in to follow this  
Jewtus

PDFs without additional software?

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.

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites
or even with word/ppt/internet explorer/other standard windows tools.

 


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

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...