Or even if you added a boolean parameter to ImportStart() or ImportPage() (I'm not sure which one would be the most appropriate) that specifies whether or not the resources should be included, then the caller can just keep track if the note has already been imported from. For example:
ImportStart( Document src, boolean importResources )
or
ImportPage( ImportContext ctx, int srcno, int dstno, boolean importResources )
If true is passed in, the behavior would be the same as the current behavior. If false is passed in, then the resources would not be copied to the destination PDF. Ideally, it could just be detected if the resources already have been imported/copied and the boolean parameter would not be needed.
Alternatively, ImportPage() could take a boolean parameter to specify if the page should be referenced or copied. For example:
ImportPage( ImportContext ctx, int srcno, int dstno, boolean copyPage )
If false is passed in, the behavior would be the same as the current behavior. If true is passed in, then in the event that the page has already been imported into the destination PDF, a copy of the imported page would be made in the destination PDF rather than only a reference to the same page.
Thanks,
Andrew