Question
FDK: F_ApiUpdateBook() always results in FA_errno=-1
Hi,
I have seen this posted a couple times with no real solution and I would like to get to the bottom of it. I am trying to automatically update a book before saving as PDF via the FDK. It looks like the function F_ApiUpdateBook(..) should do this, but it always fails with FA_errno set to -1, which supposedly means:
#define FE_Transport -1 /* Communications is falling apart */
This is odd, because another poster (Angelo?) suggested that when he had this same problem and failed to make it work (receiving the same error), he just used the API call F_ApiSimpleGenerate(..). I tried this, and it appears to work - meaning it generates a bunch of files, and there are no errors. Good.
However! The docs recommend I call F_ApiUpdateXRefs(..) before calling F_ApiSimpleGenerate(..). The problem is - if I call this on my book it fails with FA_errno = -2, meaning an invalid book or document id. So perhaps I need to call this on every document in the book? But then what about all those other F_ApiUpdate* functions - do I need to call them individually as well? This just seems ridiculous when there is a perfectly good API function called F_ApiUpdateBook(..) that is supposed to do it all in one go!
Has anyone got this to work...ever? I have searched until I am blue in the face with no luck. I tried editing the parameter script to basically not attempt to update anything, and F_ApiUpdateBook(..) still fails with FA_errno = -1. It seems like there is something fundamentally wrong here.
I am on FrameMaker 7.2.
Thanks in advance for any help,
Mark.
I have seen this posted a couple times with no real solution and I would like to get to the bottom of it. I am trying to automatically update a book before saving as PDF via the FDK. It looks like the function F_ApiUpdateBook(..) should do this, but it always fails with FA_errno set to -1, which supposedly means:
#define FE_Transport -1 /* Communications is falling apart */
This is odd, because another poster (Angelo?) suggested that when he had this same problem and failed to make it work (receiving the same error), he just used the API call F_ApiSimpleGenerate(..). I tried this, and it appears to work - meaning it generates a bunch of files, and there are no errors. Good.
However! The docs recommend I call F_ApiUpdateXRefs(..) before calling F_ApiSimpleGenerate(..). The problem is - if I call this on my book it fails with FA_errno = -2, meaning an invalid book or document id. So perhaps I need to call this on every document in the book? But then what about all those other F_ApiUpdate* functions - do I need to call them individually as well? This just seems ridiculous when there is a perfectly good API function called F_ApiUpdateBook(..) that is supposed to do it all in one go!
Has anyone got this to work...ever? I have searched until I am blue in the face with no luck. I tried editing the parameter script to basically not attempt to update anything, and F_ApiUpdateBook(..) still fails with FA_errno = -1. It seems like there is something fundamentally wrong here.
I am on FrameMaker 7.2.
Thanks in advance for any help,
Mark.