I have written a program using DFC that is designed to overwrite document content. We do not want to version these documents, we want to overwrite the current file with a new one (a non-OCRd PDF with one that has been OCR processed).
In testing this I have found that on save, if the object name has a space it in, the characters after the space get truncated.
For example, I have an object name of LAME_602_C46 417438.
I run the process where I overwrite the content, and the object name becomes LAME_602_C46.
This is all I'm doing:
doc.setFile(fullPath); // this is the location of the new content
doc.setContentType(PDF_FORMAT);
doc.save();
I tried adding the following before the save but it made no difference.
name=doc.getObjectName();
doc.setObjectName(name);
Is there any way to preserve the name as it is?
Thanks.
- Jane