When using the pdfforge.dll to generate a merged pdf file using the vbscript example listed below some of the pdf files merged end up getting rotated 180 degrees. This is happneing with the dll distributed with version 1.2.3 of PDFCreator.
Option Explicit
Dim pdfforge, fso, objArgs, resFile, files(), Scriptname, ScriptBasename, AppTitle, i
Set fso = CreateObject("Scripting.FileSystemObject")
Scriptname = fso.GetFileName(WScript.ScriptFullname)
ScriptBasename = fso.GetFileName(WScript.ScriptFullname)
AppTitle = "pdfforge.dll - " & ScriptBaseName
If CDbl(Replace(WScript.Version,".",",")) < 5.1 then
MsgBox "You need the ""Windows Scripting Host version 5.1"" or greater!", vbCritical + vbSystemModal, AppTitle
Wscript.Quit
End if
Set objArgs = WScript.Arguments
If objArgs.Count = 0 Then
MsgBox "Syntax: " & vbtab & Scriptname & " " & vbcrlf & vbtab & "or use ""Drag and Drop""!", vbExclamation + vbSystemModal, AppTitle
WScript.Quit
End If
Redim files(objArgs.Count - 1)
For i = 0 To objArgs.Count - 1
files(i) = objArgs(i)
Next
Set pdfforge = WScript.CreateObject("pdfforge.pdf.pdf")
resFile = fso.GetParentFolderName(files(0)) & "\\MergedPDFs.pdf"
pdfforge.MergePDFFiles_2 (files), resFile, false
MsgBox "Merged file saved as " & vbCrLf & resFile
Set pdfforge = Nothing