Comments (5)
The suggested feature is analyzed and planned to be implemented in one of the nearest updates. W know which changes are required to make it work. I am not able to provide any exact time roadmap though.
In case of any suggestions or requirements, let's continue the discussion here.
from questpdf.
Update: good news! I am working on this change right now. Please expect this feature to be available in the next release 2021.08. Any updates regarding API design and breaking changes I will post here.
from questpdf.
@MarkoH17 This functionality is available within the QuestPDF 2021.08 release.
Please refer to the documentation about placeholders in the PageNumber element: https://www.questpdf.com/documentation/api-reference.html#page-number
As well as to the internal example with a table of content: https://github.com/QuestPDF/library/blob/main/QuestPDF.ReportSample/Layouts/TableOfContentsTemplate.cs
from questpdf.
@MarkoH17 Thank you for your suggestion. Indeed, it is a missing feature that many may find really important. I am aware that the QuestPDF library lacks the ability to create tables of contents and show the total number of pages on each page. I am struggling with how to exactly implement such features. In most common implementations, it is common that you need to perform the layouting algorithm twice which may significantly reduce the performance. Once - to get information about page number where the given element has appeared, and then second - to draw the content with proper information. To some extent, with specifically crafted layouts, you may need an infinite number of passes.
I will try to fit this feature in one of the future updates. So far, I am planning to improve text rendering capabilities, debugging experience and redesign documentation.
Do you have any suggestions how the API may look like for such mentioned table of contents feature? I see it may be a special component/element or some kind of text tags that will be replaced with values during report rendering.
from questpdf.
@MarcinZiabek This is great! I will test this out on a few projects I have going. Closing this issue, as support for page numbers was added in the 2021.08 release.
from questpdf.
Related Issues (20)
- Lato font is not included in platform-specific builds HOT 2
- Font rendering (line-height) in 2024.3.X HOT 12
- A variant of "ShowEntire" that does not throw an exception. HOT 6
- Column height Inheritance and text spacing HOT 1
- Rounded Borders
- Add Support for AcroFields
- The previewer doesn't show any buttons HOT 1
- Showing an svg image spams the log HOT 4
- Random segfaults caused by trying to dispose a `null` `SkSvgImage` object in `SvgImage` class finalizer HOT 4
- Unable to find an entry point named 'svg_get_size' in DLL 'QuestPdfSkia' HOT 3
- Reintroduce Win-x86 support HOT 10
- License related question HOT 2
- Colors in SVG which are specified by name do not work
- Query regarding License HOT 4
- Text Padding Issue
- Generating PDF produces blank document when using async/await HOT 2
- Header not working as expected HOT 3
- border-radius HOT 2
- Is there an asynchronous version of GeneratePdf to write to an output stream (web API)? HOT 2
- Underline is coming over the text HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from questpdf.