diff --git a/packages/syncfusion_pdfviewer_windows/windows/CMakeLists.txt b/packages/syncfusion_pdfviewer_windows/windows/CMakeLists.txt index b2a2b5c4c..ee4da19d8 100644 --- a/packages/syncfusion_pdfviewer_windows/windows/CMakeLists.txt +++ b/packages/syncfusion_pdfviewer_windows/windows/CMakeLists.txt @@ -10,7 +10,12 @@ find_path(PDFium_INCLUDE_DIR PATH_SUFFIXES "include/pdfium" ) -set(PDFium_ARCH x64) +# Determine the CPU architecture using Flutter's build configuration +if(FLUTTER_TARGET_PLATFORM MATCHES "windows-arm64") + set(PDFium_ARCH "arm64") +else() + set(PDFium_ARCH "x64") +endif() find_file(PDFium_LIBRARY NAMES "pdfium.dll" diff --git a/packages/syncfusion_pdfviewer_windows/windows/include/pdfium/arm64/bin/pdfium.dll b/packages/syncfusion_pdfviewer_windows/windows/include/pdfium/arm64/bin/pdfium.dll new file mode 100644 index 000000000..fcc958ac5 Binary files /dev/null and b/packages/syncfusion_pdfviewer_windows/windows/include/pdfium/arm64/bin/pdfium.dll differ diff --git a/packages/syncfusion_pdfviewer_windows/windows/include/pdfium/arm64/lib/pdfium.dll.lib b/packages/syncfusion_pdfviewer_windows/windows/include/pdfium/arm64/lib/pdfium.dll.lib new file mode 100644 index 000000000..a893ca679 Binary files /dev/null and b/packages/syncfusion_pdfviewer_windows/windows/include/pdfium/arm64/lib/pdfium.dll.lib differ