Page 1 of 2
Is posible to do this?
Posted: Wed Dec 23, 2009 2:40 am
by Mpanal
Hello,
A question about PDF forms.
I need do a personalized pricelist for our customers that we send weekly. This pricelist must be distributed on PDF format.
I want that this pricelist can be used also as order form for the customer filling it and resend to us for proces.
The question is: Can I create a field on each line fillable for the user and exportly to PDF as a fillable field of PDF form?
If is possible, how I must do it?
Thanks
Is posible to do this?
Posted: Wed Dec 23, 2009 3:24 am
by Edward
Hi
Yes, that is possible. Please set 'Editable' property of the StiText component in true and appropriate field will be editable in Pdf file.
Also before export to Pdf you need to assign the following static property:
Stimulsoft.Report.StiOptions.Export.Pdf. AllowEditablePdf = true;
Thank you.
Is posible to do this?
Posted: Wed Dec 23, 2009 3:28 am
by Ivan
Hello,
Also please see the "UserManual.pdf" from our site, section "5.4.1.4 Editable fields".
Thank you.
Is posible to do this?
Posted: Wed Dec 23, 2009 4:01 am
by Mpanal
Thanks for the answer.
Edward wrote:Hi
Yes, that is possible. Please set 'Editable' property of the StiText component in true and appropriate field will be editable in Pdf file.
Also before export to Pdf you need to assign the following static property:
Stimulsoft.Report.StiOptions.Export.Pdf. AllowEditablePdf = true;
Thank you.
From the designer, on preview is posible export with this propierty? Or I need set from a program?
Thanks
Is posible to do this?
Posted: Wed Dec 23, 2009 4:11 am
by Edward
Hi
Yes, that is possible. You can add this line of code in the BeginRender event of the report in the Designer or from any other event.
This property is static so it could be set from program or during report rendering, so the main idea is that it must be set before exporting process.
Thank you.
Is posible to do this?
Posted: Wed Dec 23, 2009 5:04 am
by Mpanal
I can create a pdf with an editable form now, but I can't save to local.
Is a new parameter for permit save?
Thanks
Is posible to do this?
Posted: Wed Dec 23, 2009 10:20 am
by Edward
Hi
No there is no such settings, please check user permissions to access certain folders you were going to save in.
Thank you.
Is posible to do this?
Posted: Mon Dec 28, 2009 6:08 am
by Mpanal
Edward wrote:Hi
No there is no such settings, please check user permissions to access certain folders you were going to save in.
Thank you.
No. Is not a filesystem permissions problem. Is something relatively to the pdf document.
If I open the pdf with adobe profesional I have no problems. If I open with reader I can't save the pdf with changes filling the form. I have a dialog from adobe reader saying that is not posible to save if I don't use Adobe pro.
Opening with adobe pro, I can activate user rights for save data for adobe reader. Activating it, the pdf can be filled and saved on adobe reader later.
Seems some right on the pdf document created by stimulsoft.
Is posible to do this?
Posted: Mon Dec 28, 2009 6:35 am
by Edward
Hi
Yes, it is possible to set up the user access privileges to the exported into Pdf report.
StiPdfExportSettings class contains the following parameter:
UserAccessPrivileges:
public enum StiUserAccessPrivileges
{
AddOrModifyTextAnnotations = 8,
All = 15,
CopyTextAndGraphics = 4,
ModifyContents = 2,
None = 0,
PrintDocument = 1
}
For more details, please read User Manual.pdf , page 245:
http://www.stimulsoft.com/Documentation ... En.Pdf.zip
Thank you.
Is posible to do this?
Posted: Tue Dec 29, 2009 1:58 am
by Mpanal
Hello,
Yes, setting UserAccessPrivileges to 15 works well.
Thanks you
My new challenge is inject a button and some javascript code into the result pdf. I am looking on Itext use.
Any suggestion?