07-25-2025, 02:00 AM
I am using Patagames.PDF.Net with Crosstalk. One of the enumerations is caussing issues wth Delphi.
PdfUserAccessPermission = (
NoPermissions = -3904 {4294963392}
, Reserved = -3904 {4294963392}
, PermitAll = -4 {4294967292}
, PermitPrint = 4
, PermitModifyDocument = 8
, PermitExtractContent = 16
, PermitAnnotations = 32
, PermitReserved = 192
, PermitFormsFill = 256
, PermitAccessibilityExtractContent = 512
, PermitAssembleDocument = 1024
, PermitFullQualityPrint = 2048
, PermitReserved2 = -4096 {4294963200}
);
The CrossTalk generated numbers in {} cause compiler errors. These numbers are correct per Patagames documentation.
It seems Delphi accepts numbers in the range pf -2,147,483,647 to 2,147,483,647. The negative numbers shown above work.
I think CrossTalk needs to handle this somehow.
However, make it your lowest priority. I don't use this particular enumeration. But it is a pain having to fix it every time Crosstalk generates the file.
PdfUserAccessPermission = (
NoPermissions = -3904 {4294963392}
, Reserved = -3904 {4294963392}
, PermitAll = -4 {4294967292}
, PermitPrint = 4
, PermitModifyDocument = 8
, PermitExtractContent = 16
, PermitAnnotations = 32
, PermitReserved = 192
, PermitFormsFill = 256
, PermitAccessibilityExtractContent = 512
, PermitAssembleDocument = 1024
, PermitFullQualityPrint = 2048
, PermitReserved2 = -4096 {4294963200}
);
The CrossTalk generated numbers in {} cause compiler errors. These numbers are correct per Patagames documentation.
It seems Delphi accepts numbers in the range pf -2,147,483,647 to 2,147,483,647. The negative numbers shown above work.
I think CrossTalk needs to handle this somehow.
However, make it your lowest priority. I don't use this particular enumeration. But it is a pain having to fix it every time Crosstalk generates the file.

