Hello, are there any updates with the PDF issues?
FuriousBranko
@FuriousBranko
Posts made by FuriousBranko
-
RE: afterRender of accessible PDFs removes all accessibility tags
-
RE: afterRender of accessible PDFs removes all accessibility tags
I've sent it to the email linked to your account on the Forum
-
afterRender of accessible PDFs removes all accessibility tags
Hello,
We're running into an issue when we are merging 2 generated PDFs. We have accessibility active on both the template and PDF that is being appended (trough base64).
Both PDFs pass accessibility requirements (using Adobe Acrobat Pro), but when they're merged it fails completely
Code used for merging:
async function afterRender(req, res) { if(req.data.ShowAnnex){ const base64String = req.data.AnnexPDF; try { // Decode Base64 string to a buffer const pdfBuffer = Buffer.from(base64String, 'base64'); // Append the Base64-decoded PDF to the existing report const concatenated = await jsreport.pdfUtils.append(res.content, pdfBuffer); res.content = concatenated; } catch (e) { console.error('Failed to append Base64 PDF.'); console.error(e); } } }
pdfUtils for both PDF templates:
amongst other things the document title is also removed during the merger:
-
Using the components after updating from v3.6.1 to v4.3.0 gives of errors
Hello, I've updated JSReport from v3 to v4, after running the already-made templates I keep getting the same error when calling my components. After some digging error is thrown within #each function. I've included in the jsreport.config.json that trustUserCode: true
It seems that the same issue is present on the Playground on the components template.
This is the same error I get on my local machine.(because) "component" helper call failed (because) error when evaluating templating engine for component ./components/tableComponent Cannot read properties of undefined (reading 'fire')
-
Displaying text between table break
Hello,
I am trying to display the text "Continuation" between the table breaks on the next page.
https://playground.jsreport.net/w/FuriousBranko/SY84aFdg
I've tried using the 'newPage' handle but I wasn't able to generate anything.Expectation:
Essentially if the page breaks anywhere within the <table> tag, at the beginning of the page before continuing the rows it should say "Continuation."