Sign in to follow this  
Followers 0
ScriptUSER

Converting to Pdf

7 posts in this topic

I am using a Dll to convert doc files to Pdf fornat. pdfmaker.dll

Can i use Autoit to use this dll for converting to pdf format ?

is there any coversion tools ?

here is a procedure which the dll uses in word ...

1.25 CreatePDFfromWord2 - Method to create an Adobe Acrobat (PDF) file from a Word document.

Requirements: Word and file PDFOSEND.EXE (see page 6 of this document)

Note: No postscript file created. Creates PDF faster than CreatePDFfromWord()

Arguments:

strPDFFile As String PDF file to create

strWordDocument As String Word document to use

Optional strPassword As String Word document password

Optional strWritePassword As String Word document write password

Optional strPages As String Word document pages to use

Optional blnLandscape As Boolean Page orientation. Values: True,False

Optional blnPageNumberInFooter As Boolean Place page number in footer. Values: True,False

Optional blnPageNumberInHeader As Boolean Place page number in header. Values: True,False

Optional lngPageNumberAlignment As Long Page number alignment. Values: 0=left, 1=center, 2=right

Optional blnFirstPage As Boolean Add page number to first page? Values: True,False

Optional strDistiller As String Adobe Acrobat Distiller Name

Optional blnCloseAcrobat As Boolean Close Acrobat after creating PDF file?

Example:

Dim strPDF As String

Dim strDoc As String

Dim strPagesToPrint As Variant

On Error Resume Next

Screen.MousePointer = vbHourglass

strPDF = App.Path & "\debug.pdf"

strDoc = App.Path & "\debug.doc"

strPagesToPrint = "1, 3, 6-8, 10"

oPDFmaker.CreatePDFfromWord2 strPDF, strDoc, , , strPagesToPrint

Screen.MousePointer = vbDefault

If Err.Number Then

MsgBox Err.Number & " : " & Err.Description, vbExclamation, "Error Message"

Else

'open PDF file

End If

Share this post


Link to post
Share on other sites



Any reason for the double thread on the same subject ?

Actually, it was a triple.

Share this post


Link to post
Share on other sites

Actually, it was a triple.

sorry.....My browser locked ...forced to post agin ....

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

sorry.....My browser locked ...forced to post agin ....

Can happen... (had that happen as well ) ... best thing is to first check before trying again ;) Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Can happen... (had that happen as well ) ... best thing is to first check before trying again ;)

so.. Where are the Autoit experts to help the nevbie ?

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