Özel JavaScript Çalıştır
HTML içerik görünümünü JavaScript kodu ile IronPDF kullanarak zahmetsizce değiştirin. IronPDF, HTML'den PDF'ye %uşaüm sunan ürün kütüphaneleriyle tanınan Iron Software'in bir parçasıdır.
Bunu başarmak için, JavaScript kodunu tanımlamaya başlayın. In our example, we'll change the text color of all H1 tags to red.
Next, create a rendering options object and set the enableJavaScript property to true. Assign the previously defined JavaScript code to the javascript property within this object.
Utilize the PdfDocument.FromHtml method to render the HTML content into a PDF document. Pass the renderOptions object as the second parameter.
Son olarak, yürütülen JavaScript kodunun etkilerini içeren (metin renginin kırmızıya değişmesi) çıkan PDF'yi 'executed_js.pdf' olarak kaydedin.
IronPDF'nin yetenekleri veya IronBarcode, IronOCR gibi diğer Iron Software kütüphanelerini öğrenmek için Iron Software resmi web sitesini ziyaret edin.




