Fantastic! Thanks for the rapid response...I will give it a try.
Posts made by jasonmcelravy
PDF Outline with child templates
I would like to be able to specify a data-pdf-outline-parent id in a child template that exists in the main template. I get an error saying that the outline parent passed to the data-pdf-outline-parent was not found. I have created a simple example of this error in the sandbox. If you delete the child template reference, the PDF generates with the Root>Child 1 outline. Is there a way to overcome this? Having child templates that comprise the structure of the PDF seems like it would be a common use case. Here is the playground:
PDF items/groups and Accessibility
When you add a PDF item or group, a span tag like item@@@some_string_of text@@@ is injected into the content. While it's not visible in the rendered content, it is there and screen readers read it. Is it possible to remove this content after it's served it's purpose of allowing the $pdf object's items and groups to be populated?
In general, it would be great if jsreport offered some capabilities of making the generated PDFs more accessible. Simple things like being able to specify the language and title of the PDF are needed. It would be really nice if you could add an attribute to HTML elements in the template that resulted in a tag being used for that content in the PDF. For the item/group span tags mentioned above, a tag could be added that instructs the screen reader to ignore that content. Adding some accessibility features for pdf generation would be a great feature add but until that is available, I'd like to know if there is a way to remove these item and group tags from the content after they've served their purpose. Thank you.
2.3.0 Upgrade Issues
Hi! I'll start by saying that I love the new folder feature in 2.3.0 but I want to make you aware of some challenges that I've encountered since upgrading. One is pretty major because it results in the loss of data. This may be an environmental issue because I am seeing it running jsreport studio in Azure as a docker container with Azure blob storage as the store. I couldn't reproduce it locally with a file system store.
I'll start with the simpler issue. I'm seeing empty folders automatically created. This seems to happen due to my naming convention. For example, if I have a template named "report" and one named "report_header" and a script named "report_script" in a folder, when jsreport studio restarts, I will see two empty folders created. One is named _script and the other is named _header. If I deleted them and restart, they will reappear. This happens in sub folders as well. I create subfolders to store child templates and related entities. In most cases, this is just a template and a script such as "child" and "child_script" which results in an empty _script folder as described above. HOWEVER, for a couple of the subfolders, I don't get the _script folder on a restart...instead, my childe_script will be deleted entirely. I checked the blob storage in Azure and the script is, in fact, deleted. Fortunately, I had an export and was able to recover my scripts but this is obviously a major concern.
Another issue that I discovered in debugging this is that in my "assets" folder I have some fonts. Arial.woff, Calibri.woff and Calibri.woff2. It's worth nothing that on restart an empty folder named "2" is created like I described above. I wanted to test this locally so I exported everything an imported into my local jsreport studio using the file system as the store and the fonts don't import at all despite appearing to be in the export.zip.
I realize this is a lot but I wanted to share everything that I'm seeing. Let me know if there's anything I can do to assist and resolving these...again, the data loss is my primary concern.
RE: PDF Utils: pdfCreatePagesGroup not working as expected
Thank you for the quick delivery of a patch. I definitely understand the dilemma that you describe. I'm sure the patch will not fit everyone's use case. How feasible would it be for each page in the $pdf object to have a firstGroup and lastGroup property? The report developer could then decide which to use in the header. The header could also show the "range" of data on the page. For example, if the report shows data on students, the header of each page could show "Student A - Student C", "Student C - Student F", etc. Perhaps there is a way to already do this effectively using items? I'm trying to avoid any solution that requires the "render for every page" strategy as the performance gain by "merge whole page" is significant.
RE: PDF Utils: pdfCreatePagesGroup not working as expected
Any additional information I can provide to get a response and some insight on this? While this is a distilled example, I'm an enterprise scale licensee trying to use jsreport to solve real world business problems. Thanks.
PDF Utils: pdfCreatePagesGroup not working as expected
I have a simple use case that I'm trying to implement. When the content of a report section expands across multiple pages, I would like to re-print the section name in the header. Because the section lengths can vary in size, I do not want to force a page break resulting in a lot of white space. I'm trying to implement this using PDF Utils groups.
I have created a simple example of this in the playground (https://playground.jsreport.net/w/anon/ASmqFi2M). I would expect page 2 of the report to have a header of 'Section 2 (continued...)' but it incorrectly says 'Section 1 (continued...)'. I logged the $pdf object in the header and I don't see 'Section 2' in the object anywhere.
BUG: PDF Utils Headers do not work in landscape
I came across this bug and it is reproducible in one of your playground examples:
Just select the "landscape" option in chrome-pdf and the headers no longer display.