Used create pdf documents within an asp .net mvc project by generating your views as normal then returning a PdfActionResult.
Questions tagged [mvcrazortopdf]
19 questions
8
votes
1 answer
iText's XmlWorker does not recognize border-bottom on table cell
XmlWorker does not recognize border-bottom on table cell.
This is my code:
Your name |
![]()
sports
3
votes
1 answer
MVCRazorToPdf (iTextSharp) using custom fontI am trying to add a custom font to my pdf output using the nuget package MVCRazorToPdf but I am having trouble with how to do this as the documentation for iTextSharp isn't great and all seems to be outdated.
The current code I have for creating…
![]()
Pete
3
votes
2 answers
C# Asp.net RazorPdf / iTextSharp image from base64I'm using MvcRazorToPdf in my Asp.net MVC5 project to create pdfs from model.
That works fine, but I want to include an image from a base64 string, because I don't want to save the generated image.
System.Drawing.Image img =…
![]()
anguish
3
votes
1 answer
MvcRazorToPdf align content to bottom of pageI am trying to get a footer in a generated pdf file. I am using this library
https://github.com/andyhutch77/MvcRazorToPdf
Is there any way to get some of my content to the bottom of the page? Unfortunately pdf does not respond to position:absolute;…
![]()
user1534664
2
votes
0 answers
MVCRazorToPDF Adding page header and footer on every pagesCan i make a header and footer on every pages created using MVCRazorToPDF Library
On PDFLayout.cshtml file i am making a section for the body of PDF as
@RenderBody()
And in controller i am calling the action like
return new…
![]()
Sebastian
2
votes
1 answer
Display page numbers with MvcRazorToPdfI am trying to use this package in a project of mine and would like to display the page number. There is a property on the Document object that has the PageNumber but. I have no clue how to access it from the view
Current code:
PrintManager…
![]()
Jester
2
votes
2 answers
MvcRazorToPdf - images not rendering, MVC4I have been trying to render an image but with no positive result. Is there anything specific I need to add to make it work. I am not including the rest of the View which renders fine, but in the pdf, the image is missing.
I have followed the below…
![]()
user2281858
1
vote
1 answer
Align contents to right in MvcRazorToPdf libraryI have below view which generates PDF invoice using MvcRazorToPdf library
|
---|