PDFiumSharp icon indicating copy to clipboard operation
PDFiumSharp copied to clipboard

FS_QUADPOINTSF (and some others structs) marshalling issue

Open sergeyleliukh opened this issue 6 months ago • 2 comments

FS_QUADPOINTSF contains only Fields but for working with PDFium marshalling needs Properties

[StructLayout(LayoutKind.Sequential)] public struct FS_QUADPOINTSF { public float X1 { get; } public float Y1 { get; } .... }

but needs

[StructLayout(LayoutKind.Sequential)] public struct FS_QUADPOINTSF { public float X1; public float Y1; ... }

for example, try to call FPDFAnnot_AppendAttachmentPoints

sergeyleliukh avatar Jul 09 '25 12:07 sergeyleliukh