I am trying to use Amyuni PDF Converter 2.50 to convert some CAD drawings in PDF .
If I convert them by using the print command from within the CAD application, and choose Amyuni as printer, the result is OK.
I have created an application in VB6 that can export the pdf file from a user interface, and I have referenced it to Amyuni DLL Activex.
Here is part of the code:
Dim PDFPrinter As New CDIntfEx.CDIntfEx
Const NoPrompt As Integer = 1
Const UseFileName As Integer = 2
PDFPrinter.DriverInit "PlotGbgPDF"
PDFPrinter.EnablePrinter AMY_USER, AMY_SERIAL ' These are constants
PDFPrinter.PaperSize = vbPRPSA3
PDFPrinter.Orientation = vbPRORLandscape
PDFPrinter.Resolution = 600
PDFPrinter.FileNameOptions = NoPrompt + UseFileName
PDFPrinter.DefaultFileName = "c:\temp\prova.pdf" '-> This is an example
'This is the print command
nVal = Shell(psDirProg & "\bin\gbplo.exe -ini " & App.Path & "\PlotGBG1.ini " & "-FER C:\NUL -GRA ODVT 'MWPRINTER:PlotGbgPDF' -GRA FORMD A3 -L 1 5 -S O -W O -GRA MWIDTH 2 -F '" & lstScelte.List(0) & "'")
PDFPrinter.FileNameOptions = 0
PDFPrinter.DriverEnd
Set PDFPrinter = Nothing
The PDF file is created correctly, but the resolution is lower than the one created with the interactive method.
Looking at the properties (resolution, paper size, orientation, etc.), I can't see any difference between the two methods.
Have you any suggestions.
Thank you in advance.
Best regards.
M.Bonaga