You can find details about Postscript at
http://www.cs.indiana.edu/
Regarding other questions refer to
http://sybooks.sybase.com/
Regards,
Loks
Main Topics
Browse All TopicsDear All,
First of all, sorry if my english is bad.
I am a new user in PowerBuilder.
Currently I am using Power Builder Ver. 9
I've fiew questions about saving a data window in PDF Format :
1. Can u give me a brief and clear explaination about "Post script", what is it, what is it for, how to make it and use it in PB.
2. How to set a security option of a PDF document directly from Power Builder, so the user can only print the PDF result.
3. How to speed up the PDF generation process.
Regards Sofian
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You can find details about Postscript at
http://www.cs.indiana.edu/
Regarding other questions refer to
http://sybooks.sybase.com/
Regards,
Loks
Thanks Loks, but I've done everything by the book
I am able to print or save the D/W to PDF format, but the problem is I can't protect the document so the user can't do anything with the PDF result, so my big problem is how to print & directly protect the PDF result.
I've done searching to sybase and any other site but still I can't get the solution
Thx
Hi,
Printing is easy because according to my understanding PDF writer actually prints the data into PDF file.
So set the Windows setting for default Printer to Adobe in registry
First get the Adobe Printer from Registry using
RegistryGet ( "HKEY_CURRENT_USER\Softwar
Then set it as default Printer
"HKEY_CURRENT_USER\Softwar
This setting keep the viewer from popping up after the file has been printed.
RegistrySet ("HKEY_CURRENT_USER\Softwa
To check whether the PDF file finished Printing the PDF file
After the Printing is over then the
RegistryGet("HKEY_CURRENT_
of sKey will Null or Len(sKey) < 0
Now just call dw_1.Print(False), which printed my PDF file.
This is the procedure I have used to print the PDF files using Acrobat 4 PDF writer.
And the PDF filed printed did not allow any user to Modify the Contents.
I did not use any security Settings to Print PDF.
For further reference, there is Forum where you can get more information perticular to PDF i.e;
http://www.planetpdf.com/
Regards,
Loks
Thanks for yopur attention Loks
I've already done everything you told but still it couldn't work.
Currently I use PDF Writer 5.0 and Power Builder 9
I am able to make PDF output using ghostscript or PDF Writer but still I can't protect the PDF result.
(PDF writer is much faster that ghostscript).
Below is my script.
**************************
USING PDF WRITER
**************************
int MyLoop
string PDFFolder, PDFFileName
PDFFolder = "C:\MyApp\PDF_OUTPUT"
dw_1.Object.DataWindow.Pri
For MyLoop = 1 To 2
PDFFileName = PDFFolder + "\printed-" + string(MyLoop) + ".pdf"
RegistrySet("HKEY_CURRENT_
dw_1.Print(False)
Next
**************************
USING GHOSTSCRIPT
**************************
int MyLoop
string PDFFolder, PDFFileName
PDFFolder = "C:\MyApp\PDF_OUTPUT"
dw_1.Object.DataWindow.Exp
dw_1.Object.DataWindow.Pri
dw_1.Object.DataWindow.Exp
For MyLoop = 1 To 2
PDFFileName = PDFFolder + "\printed-" + string(MyLoop) + ".pdf"
dw_1.SaveAs(PDFFileName, PDF!, true)
Next
Regards,
Sofian
Thanks for yopur attention Loks
I've already done everything you told but still it couldn't work.
Currently I use PDF Writer 5.0 and Power Builder 9
I am able to make PDF output using ghostscript or PDF Writer but still I can't protect the PDF result.
(PDF writer is much faster that ghostscript).
Below is my script.
**************************
USING PDF WRITER
**************************
int MyLoop
string PDFFolder, PDFFileName
PDFFolder = "C:\MyApp\PDF_OUTPUT"
dw_1.Object.DataWindow.Pri
For MyLoop = 1 To 2
PDFFileName = PDFFolder + "\printed-" + string(MyLoop) + ".pdf"
RegistrySet("HKEY_CURRENT_
dw_1.Print(False)
Next
**************************
USING GHOSTSCRIPT
**************************
int MyLoop
string PDFFolder, PDFFileName
PDFFolder = "C:\MyApp\PDF_OUTPUT"
dw_1.Object.DataWindow.Exp
dw_1.Object.DataWindow.Pri
dw_1.Object.DataWindow.Exp
For MyLoop = 1 To 2
PDFFileName = PDFFolder + "\printed-" + string(MyLoop) + ".pdf"
dw_1.SaveAs(PDFFileName, PDF!, true)
Next
Regards,
Sofian
Hi Sofian,
You are using Save As function. Try using Print instead of Save As. Even the PDF is printed when SaveAs() used.
Kindly check the Properties in the Acrobat PDF Printer and Acrobat Disteller. You have security setting in the Acrobat Distiller.
You will find it under Printers Folder
Regards,
Loks
Hi,
Check the release Bulletin of powerbuilder 9.0 at
http://www.sybase.com/deta
Section 3. Special installation instructions
According to Sybase the SaveAs to PDF file does not work as it requires other softwares to be installed.
did you follow all these steps for GNU?
There are links given to download the GNU and the Acrobat post script.
Using the Acrobat post script you can set the document settings.
Regards,
Loks
Business Accounts
Answer for Membership
by: sofianlutfiPosted on 2003-07-05 at 06:06:25ID: 8860200
I need it ASAP