Itextsharp is showing a pdf with blank pages

May 16 2021 12:02 PM

here is my problem: -i have made an ASP.net MVC web bilingual site (french & arabic) and there is a function that creates a pdf when a button is clicked. -in french version: every thing is ok. -in arabic version: the result is a pdf with 423 blank pages.

to manage languages i have used two cultureInfo:

  1. "ar" for arabic language
  2. "fr" for french language with two links: (arabic|french) to toggle between them.

-in the arabic version, i changed manually (in debug mode) the cultureInfo from "ar" to "fr". Result: the pdf works but after refreshing it

-Can you show how to solve it if it's possible please.Thanks in advance


Answers (2)