Jump to content

Converting to Pdf


Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...