Hi,
is it possible to create a PDF that asks the user automatically with a print dialog after opening? Or is there any other possiblilty to auto-print a PDF generated as a stream?
Thanks,
Uli
Auto-Print of PDF
Re: Auto-Print of PDF
Hello,
Yes it possible to do that is by using our latest version.
Basically what you have to do is:
- Create a javascript action
- Set the created action in the doc open trigger.
Here a basic example:
Let me know if you need clarifications.
With best regards,
Loïc
End Using
Yes it possible to do that is by using our latest version.
Basically what you have to do is:
- Create a javascript action
- Set the created action in the doc open trigger.
Here a basic example:
Code: Select all
Using oGdPicturePDF As New GdPicturePDF
If oGdPicturePDF.LoadFromFile("c:\test.pdf", True) = GdPictureStatus.OK Then
oGdPicturePDF.SetViewerOpenAction(oGdPicturePDF.NewActionJavaScript("this.print();"))
oGdPicturePDF.SaveToFileInc("c:\test.pdf")
End If
End Using
With best regards,
Loïc
End Using
Re: Auto-Print of PDF
Hi,
thanks, works perfect (but not in PDF-A, but I assume that is a "feature" of PDF-A)
Thanks,
Uli
thanks, works perfect (but not in PDF-A, but I assume that is a "feature" of PDF-A)
Thanks,
Uli
Who is online
Users browsing this forum: No registered users and 0 guests