Atozed Forums
Enumerations - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: CrossTalk (https://www.atozed.com/forums/forum-2.html)
+---- Forum: CrossTalk General Discussion (https://www.atozed.com/forums/forum-7.html)
+---- Thread: Enumerations (/thread-5321.html)



Enumerations - Sugarloafer - 07-25-2025

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.


RE: Enumerations - Alexandre Machado - 10-27-2025

Hi there,

I'll see if I can create a test case that reproduces this issue.