Hello,
We have been trying to use create a service for automatic document signing.
Right now we have two problems:
1) When you sign a document through acrobat, it gives you an option of locking the document. If you do this, on the signature properties you can read something like: "The certifier has specified that no changes are allowed to be made to this document."
Do we have access to any variable that grants control over this behaviour?
2) When signing a pdf with a digital certificate, the signing time includes the time zone for example: "2018/09/11 12:07:20 + 01'00'". Is there any way to retrieve the same format so we can put it on the appearance? (If we just use the signatureField.Signature.Properties.TimeOfSigning.toString(), it does not include the timezone)
I'll be willing to supply any other code necessary.
Thank you in advance.
private
void
StreamReports(Dictionary<
int
, MemoryStream> ReportStreams)
{
string
destPPTXFile =
string
.Format(
"{0}.pptx"
, txtPresentationName.Text);
string
destXLSXFile =
string
.Format(
"{0}.xlsx"
, txtPresentationName.Text);
MemoryStream outputStream =
new
MemoryStream();
ZipPackage zipPackage = ZipPackage.Create(outputStream);
MemoryStream powerpointStream = ReportStreams[0];
MemoryStream excelStream = ReportStreams[1];
zipPackage.AddStream(powerpointStream, destPPTXFile);
zipPackage.AddStream(excelStream, destXLSXFile);
SendZipToClient(outputStream, zipPackage);
}
private
void
SendZipToClient(MemoryStream memStream, ZipPackage Package)
{
string
destFile =
string
.Format(
"{0}.zip"
, txtPresentationName.Text);
Package.Close(
false
);
memStream.Position = 0;
if
(memStream !=
null
&& memStream.Length > 0)
{
Response.Clear();
Response.AddHeader(
"content-disposition"
,
"attachment; filename=\""
+ destFile);
Response.ContentType =
"application/zip"
;
Response.BufferOutput =
false
;
// to prevent buffering
byte
[] buffer =
new
byte
[1024];
int
bytesRead = 0;
while
((bytesRead = memStream.Read(buffer, 0, buffer.Length)) > 0)
{
Response.OutputStream.Write(buffer, 0, bytesRead);
}
Response.End();
}
}
I have the following code which fails at the `.Import` statement:
public
byte
[] PopulateHtmlAndTextBookmarks(
byte
[] input, List<BookmarkInfo> bookmarks)
{
// Get the bytes into the Telerik doc object and load that into an editor
DocxFormatProvider provider =
new
DocxFormatProvider();
RadFlowDocument document = provider.Import(input);
The error is "System.ArgumentNullException: 'Value cannot be null. Parameter name: relationshipId'"
The issue appears to be that I have two images in that file (Open XML relationship IDs "rId7" and "rId8") that point to external URLs. If I change those images to point at files inside the DocX container it works fine.
Does DocxFormatProvider work with external image links?
(I'm using 2018.2.619.40)
PS I've tried to attach the file but it says only .jpg, .jpeg, .gif, .png are allowed
Hello!
I'm trying to add fields from a database into a pdf like the image attached shows. I already read the FormFieldCollection documentation, but I'm lacking the knowledge to make it work.
Can someone please include a code example on how to do this ?
Hi,
I have form fields that are set to "Visible but doesn't print" but it does not seem to have any effect on the PDF after setting the values using the library.
Not sure if I am doing something wrong.
Thanks.
Hi Guys,
I'm finding a solution for two questions using PdfProcessor:
1 - There is a way to convert a pdf document to GrayScale ?
2 - There is a way to compress a existing pdf document ?
Regards,
Cleidson.