We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PdfFileInfo destroys links in PDF document!

Hi,

I am using PdfFileInfo to update document information; source code is as follows:

PdfFileInfo fileInfo = new PdfFileInfo(pdfFile.getAbsolutePath());
fileInfo.setCreationDate(value);
fileInfo.setAuthor(value);
fileInfo.setTitle(value);
fileInfo.setSubject(value);
fileInfo.setKeywords(value);
fileInfo.setCreator(value);
fileInfo.setModDate(value);
fileInfo.setCreationDate(value);
fileInfo.saveNewInfo(tmpPDF.getAbsolutePath());

where "value" of course is always filled with different content.

After this, most of the links in the document are defective and a click on them does not have any effect anymore.

What causes this?

Regards,
Mathias

Hi Mathias,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the sample code.

Please share your template PDF document with us to regenerate the issue at our end. This will help us figure out the issue soon.

Sorry for the inconvenience,

Hi Nausherwan,

please use the example from <A href="</A></P> <P>Source PDF (docobfuscated.pdf) contains valid links, but the links in the resulting document (docobfuscated.out.pdf) are invalid.</P> <P>Regards,<BR>Mathias</P>

Hi Mathias,

I have reproduced this problem at my end and logged it as PDFKITJAVA-32002 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.
Regards,