I have a simple Delphi procedure to merge two PDF files.
procedure MergePDF;
var
PXCInst: IPXC_Inst;
document1, document2: IPXC_Document;
count1, count2: ULONG_T;
begin
PXCInst := CoPXC_Inst.Create;
PXCInst.Init(key);
document1 := PXCInst.OpenDocumentFromFile(PWideChar(filename1), nil, nil, 0, 0);
document2 := PXCInst.OpenDocumentFromFile(PWideChar(filename2), nil, nil, 0, 0);
document1.Pages.Get_Count(count1);
document2.Pages.Get_Count(count2);
document1.Pages.InsertPagesFromDoc(document2, count1, 0, count2, 0, nil);
document1.WriteToFile(PWideChar(destinationFilename), nil, 0);
document1.Close(0);
document2.Close(0);
PXCInst.Finalize;
end;
I get an "invalid floating point operation" error on the call to document1.WriteToFile, and this happens no matter which PDF files I use for testing - I have tried several different. Is this a bug in the SDK, or something wrong with the parameters I use?
I use PDF-XChange Core API SDK, version: 6.0.322.7. I have registered the DLLs with regsvr32, and imported the TLB to Delphi.
invalid floating point operation during IPXC_Document.WriteToFile
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 14
- Joined: Fri Feb 18, 2005 2:23 pm
- Location: Trondheim, Norway
- Contact:
- Tracker Supp-Stefan
- Site Admin
- Posts: 17907
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: invalid floating point operation during IPXC_Document.WriteToFile
Hello DISystemer,
I have passed your problem to our devs and they will take a look at this and reply as soon as possible!
Happy Holidays,
Stefan
I have passed your problem to our devs and they will take a look at this and reply as soon as possible!
Happy Holidays,
Stefan
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: invalid floating point operation during IPXC_Document.WriteToFile
Hello DISystemer,
Please use forum search before asking - this will lower the duplicate topics count:
https://www.pdf-xchange.com/forum3 ... ng#p117445
Cheers,
Alex
Please use forum search before asking - this will lower the duplicate topics count:
https://www.pdf-xchange.com/forum3 ... ng#p117445
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ