Sign in to follow this  
Followers 0
Jewtus

PDFs without additional software?

7 posts in this topic

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)
1 person likes this

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

I think this only works if you have installed additional software MS Office/Word.


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

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

Yes, pays to read what the OP is asking :)


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

>This is nice


small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites

>This is nice

This is PERFECT!!!

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  
Followers 0