Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.
Thu Mar 24, 2016 6:17 pm
Hi there
Could you say me a way to change the Metadata of an pdf?
Is it possible in the free version?
Br
Stony007_de
-
stein.stephan@gmx.de
-
- Posts: 16
- Joined: Sun Jan 17, 2016 12:10 pm
Fri Mar 25, 2016 2:08 am
Hi,
Thanks for your posting.
Free version supports the feature.
Please refer to the following code.
- Code: Select all
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile("sample.pdf", FileFormat.PDF);
XmpMetadata meta = pdf.DocumentInformation.GetMetaData();
CustomMetadata schmea = new CustomMetadata(meta, "custom", "www.e-iceblue.com");
schmea["Name"] = "e-iceblue";
document.SaveToFile("XmpMetadata.pdf");
Best Regards,
Amy
E-iceblue support team
-
amy.zhao
-
- Posts: 2774
- Joined: Wed Jun 27, 2012 8:50 am
Fri Mar 25, 2016 7:42 am
thx for reply! but it won't work!
there is no change in the meta information.
i would like to change the title, author, subject etc...
after running code there is a new file but the same old metainfos
-
stein.stephan@gmx.de
-
- Posts: 16
- Joined: Sun Jan 17, 2016 12:10 pm
Fri Mar 25, 2016 8:07 am
Hi,
Sorry that it doesn't help.
Trial version has a new solution as below. Please try the following code with
Spire.PDF Pack(Hot Fix) Version:3.6.167.
- Code: Select all
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile("..\\..\\Sample3-1.pdf");
XmpMetadata meta = pdf.XmpMetaData;
meta.SetAuthor("new author");
meta.SetTitle("new title");
meta.SetSubject("new subject");
pdf.SaveToFile("result.pdf");
Best Regards,
Amy
E-iceblue support team
-
amy.zhao
-
- Posts: 2774
- Joined: Wed Jun 27, 2012 8:50 am
Mon Mar 28, 2016 7:54 am
hey that works fine!
now,
please give support for the free version.
-
stein.stephan@gmx.de
-
- Posts: 16
- Joined: Sun Jan 17, 2016 12:10 pm
Mon Mar 28, 2016 8:03 am
Hi,
We only maintain our free product when we have enough time. Sorry that there is no exact time when new Free version will be released.
Best Regards,
Amy
E-iceblue support team
-
amy.zhao
-
- Posts: 2774
- Joined: Wed Jun 27, 2012 8:50 am
Mon Mar 28, 2016 8:40 am
hmm very bad...
is there a way to get an commercial license for an non-commercial company (hospital) to develop non-profit tools for own use?
the regular pricing is not in my budged. ;-(
-
stein.stephan@gmx.de
-
- Posts: 16
- Joined: Sun Jan 17, 2016 12:10 pm
Mon Mar 28, 2016 8:45 am
Hi,
Please contact
sales@e-iceblue.com for non-profit organization discount.
Best Regards,
Amy
E-iceblue support team
-
amy.zhao
-
- Posts: 2774
- Joined: Wed Jun 27, 2012 8:50 am