Skip to content

Sometimes the pdf is empty #237

Description

@JacopoDEV-ITA

Hello, I'm using the latest version of Rotativa (1.7.3) and I'm facing this issue: both in debug that in production, sometimes the exported pdf is empty. The structure of the page is there but all of the text is missing (take a look at the following image).

image

The weirdest part of this issue is that is not consistent: sometimes it happens, other times the pdf is fine.

Here's a snippet of my code:

public ActionResult ExportQuestionnaire(int assignmentID) { var questionnaire = db.AssignedQuestionnaires.Find(assignmentID); if (questionnaire != null) { FillQuestionnaireViewModel vm = new FillQuestionnaireViewModel(questionnaire); string filename = "questionnaire.pdf"; ViewBag.PDFExport = true; return new ViewAsPdf("FillQuestionnaire", vm) { FileName = filename }; } else { return new HttpNotFoundResult(); } }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions