Zarzadzanie naglowkami tabel w IronPDF
Gdy mamy do czynienia z tabelami HTML, ktore rozciagaja sie na wielu stronach w pliku PDF, wazne jest, aby naglowki tabel powtarzaly sie na gorze kazdej nowej strony. Opcja CssMediaType.Print w IronPDF ulatwia to zachowanie.
// Set the CSS media type to 'Print' to ensure table headers repeat on every new page
Renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.PdfCssMediaType.Print;
// Set the CSS media type to 'Print' to ensure table headers repeat on every new page
Renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.PdfCssMediaType.Print;
' Set the CSS media type to 'Print' to ensure table headers repeat on every new page
Renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.PdfCssMediaType.Print
Natomiast, uzycie CssMediaType.Screen spowoduje, ze Chrome wydrukuje naglowki tabeli tylko raz, na samym poczatku tabeli.
// Set the CSS media type to 'Screen' if you want the headers printed only once at the start of the table
Renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.PdfCssMediaType.Screen;
// Set the CSS media type to 'Screen' if you want the headers printed only once at the start of the table
Renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.PdfCssMediaType.Screen;
' Set the CSS media type to 'Screen' if you want the headers printed only once at the start of the table
Renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.PdfCssMediaType.Screen
Aby uzyskac wiecej przykladow i szczegolowe fragmenty kodu dotyczace obslugi zalaman stron i tabel, mozesz odwiedzic przyklady kodu dotyczace zalaman stron i tabel.

