I'm using NReco HtmlToPdf Generator to generate complex documents, and I need to use repeatable header and footer capabilities on the pdf. Setting the header and footer using ".PageHeaderHtml" and ".PageFooterHtml" properties works, but headers and footers are not styled properly, following CSS rules included in the document (I'm also using Google fonts). It works if I duplicate the css rules and references in the header html and in the footer html (and obviously in the body html). Is there any other way to write the css and references only once? Thanks
Use a global css style for a pdf document with separate header and footer generated with NReco Html-To-Pdf Generator
2.1k Views Asked by Andrea R. At
1
There are 1 best solutions below
Related Questions in C#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in PDF-GENERATION
- PDF form checkbox/radio button ignores content stream
- Convert React Components into PDF
- I have a response from an API in the form of a binary file and I need to transform it into a PDF in react.js
- Create PDF from tinyMCE with copy/paste screenshot in it (Laravel)
- Implementing PDF generation and then From Local Notification Open the Pdf that is Saved to Download
- How do I create a website that combines user input and standard text and converts it into a pdf?
- (Flutter/Dart-PDF) How to handle long text in a Multipage Table without causing InstanceOfTooManyPages error?
- PDF form field shows original field value even after focus
- How to loop through list of values to then create PDFs in Python
- How to create pdf with multiple pages based on html using python pdfkit
- How can I resolve "TypeError: Cannot read properties of undefined (reading 'makeCopy')"?
- Itext 7 library replaces text in pdf file, but the selected text is not in the right position
- (spring boot) can't generate pdf using openPdf library
- Facing the DllNotFoundException with SkiaSharp.dll while converting the document as a PDF after using the hosted AWS service path
- Download PDF using any cloud and grant access only to a particular person
Related Questions in NRECO
- images shown in .html but not in pdf
- Fails to render Tick Mark (Font: Segoe UI Symbol) using NReco.PDdfGenerator
- every page of pdf border bottom needed for last tr using nreco.pdf library
- Error running the converter as Azure function
- Nreco taking varying lengths of time to generate the same PDF
- Customize Page Number in NReco.PdfGenerator
- How to use the ExecuteReaderAsync method from NReco DbDataAdapter
- How to get NReco.PdfGenerator to honour `column-count` css property
- Custom/non-Unicode fonts not working with wkhtmltopdf wrapper nreco on window application in C#.NET
- Internal Server Error 500 when running NReco in AWS App Runner
- Repeat user info on every page in html to pdf
- NReco.PdfGenerator may not be fully compatible with your project
- How to implement mutations using nreco.graphql in dotnet application
- The ScaleTo parameter behaviour in the NReco.PdfRenderer.PdfToImageConverter in Windows
- Nreco C# WkHtmlToPdf wrapper flex wrap
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Wkhtmltopdf (which is internally used by NReco PdfGenerator) renders header, footer and main content as independent HTML documents. This means that CSS rules from main HTML document are not shared with header/footer templates. You can extract common CSS rules into separate CSS file and reference it from HTML documents where they are needed. If you have no control over main HTML content you can link extra CSS with "--user-style-sheet " command line option.