Saving to Same File After Changing Properties

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
ixm7
Posts: 14
Joined: Tue Apr 29 2003

Saving to Same File After Changing Properties

Post by ixm7 »

Are there known issues/limitations (file corruption?) related to using the interface dll to open an existing PDF file, changing properties, and then saving to the SAME file?
----------------------------------
pdfdoc.Open (DiskFileName)
pdfdoc.Title = "Some Title"
pdfdoc.Save (DiskFileName)
Set pdfdoc = Nothing
----------------------------------

Thanks,
- Ido
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

There is no real limitation when using CDintf to open a file, change its title and save it.

But if the file you are opening is not generated by our driver, there might be a possibility that this file will get corrupted.

In each new version of our driver we are covering a wider range of pdf files so, I advise you to check that you are using the latest dll. Our latest version of the driver is 2.10e.
Last edited by Joan on Mon Sep 15 2003, edited 1 time in total.
ixm7
Posts: 14
Joined: Tue Apr 29 2003

Post by ixm7 »

Joan,

Thanks for the quick response!

My version was 2.1.0.3
I downloaded the most recent one and it is 2.1.0.5

I'll test to see if this fixes the sporadic file corruption problem
(Adobe Reader: "There was an error opening this document. The file is damaged and could not be repaired").

Cheers,
- Ido
ixm7
Posts: 14
Joined: Tue Apr 29 2003

Post by ixm7 »

The new version didn't fix the file corruption problem (this occurs only in PDF files that contain an image).

I'll try again when a newer version is released.

Thanks,
- Ido
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please note that if your PDF files is LZW compressed than you will not be able to open it and change is properties, you will only be able to open it to count the number of pages in the document by example. We do not support LZW compression because it is a patent algorithm.

You may also send your file to support@amyuni.com to check it.

Thanks.
ixm7
Posts: 14
Joined: Tue Apr 29 2003

Post by ixm7 »

Joan,

Thanks; I submitted a Before/After file versions.

Regards,
- Ido
Post Reply