PDFOut Print Image
Publicado: 13 Jul 2022 03:12
Hi... i am working with PDFout but i cant add image on my pdf?
i used this syntax
PDFOut.SetUnits("pt")
PDFOut.SetDisplayMode("PDF_ZOOM_FULLWIDTH", "PDF_LAYUOUT_TWO")
PDFOut.DisplayPreferences(true, false, false, false, true, false, false)
PDFOut.SetMargins(20, 20, 20)
-- CREATE DOCUMENT HEADING
PDFOut.SetFont("Arial", "B", 13)
PDFOut.SetFontColor(0)
PDFOut.PrintAligned("TEST", 30, 13, 555, 13, "CENTER")
PDFOut.PrintAligned("TEST", 30, 28, 555, 13, "CENTER")
PDFOut.PrintAligned("TEST", 30, 43, 555, 13, "CENTER")
PDFOut.DrawLine(30, 58, 585, 58, 1, 0);
PDFOut.PrintImage("AutoPlay\\Images\\Test.png", 50, 50, 100, 100);
PDFOut.WritePDF("C:\\Test.pdf")
--OPEN PDF
File.Open("C:\\Test.pdf", "", SW_SHOWNORMAL)
but in the PDF it only print the TEST the image didn't show...
I really appreciate anyone can help..i am asking your help in code,,, thank you
~ Sendai
i used this syntax
PDFOut.SetUnits("pt")
PDFOut.SetDisplayMode("PDF_ZOOM_FULLWIDTH", "PDF_LAYUOUT_TWO")
PDFOut.DisplayPreferences(true, false, false, false, true, false, false)
PDFOut.SetMargins(20, 20, 20)
-- CREATE DOCUMENT HEADING
PDFOut.SetFont("Arial", "B", 13)
PDFOut.SetFontColor(0)
PDFOut.PrintAligned("TEST", 30, 13, 555, 13, "CENTER")
PDFOut.PrintAligned("TEST", 30, 28, 555, 13, "CENTER")
PDFOut.PrintAligned("TEST", 30, 43, 555, 13, "CENTER")
PDFOut.DrawLine(30, 58, 585, 58, 1, 0);
PDFOut.PrintImage("AutoPlay\\Images\\Test.png", 50, 50, 100, 100);
PDFOut.WritePDF("C:\\Test.pdf")
--OPEN PDF
File.Open("C:\\Test.pdf", "", SW_SHOWNORMAL)
but in the PDF it only print the TEST the image didn't show...
I really appreciate anyone can help..i am asking your help in code,,, thank you
~ Sendai