My typical scenario is to Open the file, append a new page, and the try to save over the orginal file.
The error code returns -211339492 in Delphi.
I rolled back to the Feb 2 build of the DLLs and it works fine again.
Code: Select all
function TPDFLibEx.SaveDocument(AFileName: String; APassword: String = ''): Boolean;
var
hr: HRESULT;
begin
Result := False;
if (FDocID > 0) and ForceDirectories(ExtractFilePath(AFileName)) then
begin
if (APassword <> '') then
try
PXCp_EnableSecurity(FDocID, True, PChar(APassword), PChar(APassword));
except end;
hr := PXCp_WriteDocumentW(FDocID,
PWChar(WideString(AFileName)),
PXCp_CreationDisposition_Overwrite,
PXCp_Write_NoRelease);
Result := not IS_DS_FAILED(hr);
end;
end;