PDA

View Full Version : Help with PDFOut.dll



jman
07-23-2006, 12:45 PM
Why Does this Generate a "Wrong operand type." Error message:(In RED)

--Set the unit of measure for the paper
--(206mm wide, 280mm High for a normal 8 1/2 X 11 sheet)

--set the document up
PDFOut.SetUnits("pt")
PDFOut.SetDisplayMode("PDF_ZOOM_FULLWIDTH", "PDF_LAYUOUT_LANDSCAPE")
PDFOut.DisplayPreferences(false, false, false, false, true, false, false)
PDFOut.SetMargins(18, 18, 18)

PDFOut.PrintImage("AutoPlay\\Images\\002BT15.PNG", 100, 100, 400, 0)(This generates an error)
PDFOut.PrintImage("AutoPlay\\Images\\DSC01186.JPG", 100, 100, 400,(this works, 0)

Also If i change the folder directory to Photos\\632762984911093750.png
It generates This Error:"An Unrecognized token '-1.#j' was found."

Do I need to Change something in the Global Functions?
--Create the PDF
PDFOut.WritePDF("C:\\Test.Pdf")
--Print the PDF
--File.Print("C:\\Test.Pdf")

--Let's take a look
File.Open("C:\\Test.pdf", "", SW_MAXIMIZE)

Worm
07-23-2006, 01:38 PM
I can't remember if PNG is supported, but my guess is not. I'll look into it and get back with you.

jman
07-23-2006, 01:41 PM
I appreciate you looking.
One of your orig threads said this :

Also, you can print images (JPG and PNG) to the PDF. The sample image doesn't show that, so I thought I'd mention it as I know that has been an issue in the past on how to print an image from within AMS.

Dermot
07-23-2006, 02:33 PM
I have found that some PNG files work and others don't. The most reliable I have found is JPEG.

I have never got an error when using PNG files, they just don't show up on the PDF.

If you could shed some light on this Worm, that would be great.

jman
07-29-2006, 08:56 PM
I am going to start a new thread, sorry :(