Hi,
We are using Aspose pdf for .net v6.3. We have managed to change almost all the properties of a generated pdf file by Aspose pdf. However still the "Producer" and "Application" fileds shows as "Aspose.Pdf for .Net 6.3" & "Aspose Ltd." respectively as shown in attached screen shot, which does not meet to our requirement. We are planning to buy OEM licenses only if Aspose meets our requirement. We are runnning a trial run before placing order.
Please help us to resolve this issue.
Waiting for quick reply,
Thanks,
MohammadAzhar.
Hi,
We are using Aspose pdf for .net v6.3. We have managed to change almost all the properties of a generated pdf file by Aspose pdf. However still the "Producer" and "Application" fileds shows as "Aspose.Pdf for .Net 6.3" & "Aspose Ltd." respectively as shown in attachement, which does not meet to our requirement. We are planning to buy OEM licenses only if Aspose meets our requirement. We are runnning a trial run before placing order.
Please help us to resolve this issue.
Waiting for quick reply,
Thanks,
MohammadAzhar.
Hi Mohammad Azhar,
Thanks for using our products.
I tested the scenario and able to notice that you can set the "Application" property by setting the "pdf1.Creator = "Creator";" property. However, I am able to notice the same problm while setting the "Producer" property. For rectification, I logged this problem with ID: PDFNEWNET-33710 in our Issue Tracking System. We will further look into the details of this issue and will keep you updated via this forum thread on the status of correction.
We apologize for your inconvenience.
Thanks & Regards,
Hi Mohammad Azhar,
Thanks for using our products.
Kindly visit the below mentioned link for the answer of this query.
<A href="</A></P>
<P>Please feel free to contact support in case you need any further assistance.</P>
<P>Thanks & Regards,</P>
Hi Rashid,
Thanks for your quick reply and consideration of my query to Issue Tracking System..As you explain, I have already changed
"pdf1.Creator = APPNAME" // This is my application name
and
"pdf1.Creationdate = DateTime.Now.ToString()"
But still as you can see in the attached screen shot, the Application shows 'Aspose Ltd.' and Created Date shows '12:00:00 AM'.
Please guide me if I am coding wrong some where.
Thanks.
Hi Mohammad Azhar,
Thanks for your feedback.
I used the below code with Aspose.Pdf for .NET v6.9 for changing "Creator" property and its changed the value successfully. Resultant document is attached for your reference. Kindly use the below code and check if it fits your need. However, you are using "Creationdate" property but I am afraid there is no property available in Aspose.Pdf for .NET with this name.
[C#]
//Instantiate Pdf instance by calling its empty constructor<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
//Set the properties of Pdf instance
pdf1.Author = "Aspose";
pdf1.Creator = "Application Name";
pdf1.Keywords = "Keyword";
pdf1.Subject = "Subject";
pdf1.Title = "Title";
pdf1.Producer = "Producer";
pdf1.Save(@"d:\pdffiles\properties.pdf");
Moreover, please visit Purchase Information for all details about licensing. Even before purchasing the license; you may also request a 30 days temporary license for evaluating the product.
Please feel free to contact support in case you need any further assistance.
Thanks & Regards,
Hi Rashid,Thanks for the help and sample code. But I think there is some confusion here. Let me clarify it by putting our code snippet. Here are the code snippet we have used to change the pdf properties.
//open document and set PDF information
PdfFileInfo fileInfo = new PdfFileInfo(oldPDFFilePath)
{
Creator = COMPANYNAME,
Author = COMPANYNAME,
Keywords = string.Concat(APPNAME, ",", COMPANYNAME),
Title = string.Concat("Printed Document from ", APPNAME, " Vitual Printer"),
Subject = string.Concat("Printed Document from ", APPNAME, " Vitual Printer"),
CreationDate = DateTime.Now.ToString(),
ModDate = DateTime.Now.ToString(),
Producer = APPNAME // ERROR - Property or indexer 'Producer' cannot be assigned to -- it is read only
};
//save updated file
fileInfo.SaveNewInfo(newPDFFilePath);
Please correct me if I am wrong. After removing ‘Producer’ property, this code produces the output as I expalined before in my query.
Thanks.
Hi Mohammad Azhar,
Thanks for sharing the details and sample source code with us.
In Aspose.Pdf, there are actually three major namespaces to deal with PDF documents.
- Aspose.Pdf
- Aspose.Pdf.Generator
- Aspose.Pdf.Facades
Aspose.Pdf or Aspose.Pdf.Facades namespace can be used while working with existing PDF documents and Aspose.Pdf.Generator namespace is used for generating new PDF documents from scratch.
In the above discussed scenario, I was generating the new document using Aspose.Pdf.Generator namespace and was able to set "Creator" property. However, you are trying to change the properties of an existing document using Aspose.Pdf.Facades that's why "Creator" property is not changing.
Here, I would like to inform you that Aspose.Pdf for .NET and Aspose.Pdf.Kit for .NET have been merged into a single product and Aspose.Pdf.Kit for .NET has been discontinued as a separate product. All the features of Aspose.Pdf.Kit for .NET are available under Aspose.Pdf.Facades namespace of Aspose.Pdf for .NET v6.x.
Moreover, as per development team’s feedback against "PDFNEWNET-33710", the "Producer" property cannot be set explicitly even in case of generating new documents. This will always set to the current version of Aspose.Pdf.
Please feel free to contact support in case you need any further assistance.
Thanks & Regards,
Hi Rashid,
Thanks for the descriptive reply. We understand the limitations of Aspose.Pdf.Facades namespace. We would like to know if there is a way to meet our requirement in any way [e.g. A custom SDK with custom license design only for us].
Waiting for reply,
Thanks.
Hi Mohammad Azhar,
Thanks for your interest in our products.
I am very sorry for the inconvenience caused due to this issue. However, I would like to share with you that, this is not possible for us to provide custom SDK for single license.
We are really sorry for this inconvenience.
Thanks & Regards,