Hi @rpetribu ,
Most probably you are facing CORS issue.
Did you try to set the âUse proxyâ field to âyesâ?
Hi @rpetribu ,
Most probably you are facing CORS issue.
Did you try to set the âUse proxyâ field to âyesâ?
I love you.
Worked!
HACK TO HIGH RESOLUTION
Hi Guys.
I discovered a way to generate high resolution PDFs. Donât know if everybody know this âhackâ, but I decided to share it here so others may use it if wished.
As you all may noticed, the generated PDF is sort of a âprintâ of the element we are trying to transform in PDF, saved as image and attached (or transformed, donât know) in the final PDF. So, bigger elements will generate bigger images that, when compressed, will generate better quality PDFs.
Imagine that you need to generate a proposal in PDF, with lot of information, graphics and imagesâŠ
Show the proposal to your users inside a regular-sized group. Illustrating the final result of the document they are about to download as PDF, so them can read everything before generate the fileâŠ
And hidden below a giant white shape, place a giant version of this same group. With the proposal formatted with giant fonts, giant images and every other element. Just duplicate everything. Make it bigger! Maintain the proportions!
Finally, when you wish to generate the file, point it to this giant group instead the regular one.
This is the footer of my PDF with a zoom of 200%
Thank you @rpetribu for sharing this!!
Iâm sure it will be very helpful for a lot of people!
Hey Sarah. I appreciate the input. So the idea would be:
Set 2 elements groups. One group to render on desktop, one group to render on mobile.
Set a rule for each group to be visible/hidden depending on the screen size
Workflow edits of some sorts?? How do I prevent both mobile & desktop elements to be generated at the same time?
Rendered PDF
ÂŽRegarding quality: itâs a good remark but iâm not sure how much it would impact my application. There arenât any pictures. Only text.
Yes, the way is good.
1. Workflow edits of some sorts?? How do I prevent both mobile & desktop elements to be generated at the same time?
Simply by adding two pdf elements on the page (one in the group for mobile, the other one on desktop). In the same WF, you have two same actions, each one with its element id (donât forget to enable html id in settings), and with a condition (if group is visible by example)
but frankly, if thereâs just text, prefer to use pdf conjurer, this is my advice
@BubbleSam Hi Sam
Iâve just purchased a license and everything is worry fine - however, I want to generate a pdf from a repeating group that is set up on another page as Iâve been using SelectedPDF before I discovered yours. Is there a way I can trigger the PDF generation from another page without having to navigate to it?
Cheers,
Peter
Hi @peter11 !
Unfortunately, this is not possible because this plugin uses client-side PDF generation. So you can only export the content that currently present on the page
Thx for replying I found a solution using it on the page
Hi, I am trying to download the whole page content with .main-page selector and the following error appears in the console and the file doesnât download at all.
The problem occurs for other selectors too. For one id it can work, for anther not. The img selector also work, but everything is black. Can you please help me understand if this is a problem from my side or not?
Thank you.
Hi @olaf ,
Sorry to hear that. First of all, could you please try to enable proxy and see if it will resolve the issue (at least black images)? :
@BubbleSam thank you, I tried to enable it and without success.
But I also tried to download on a different page. I thought maybe the page settings are different and copied the elements from the main page to the test page and it also didnât work. Maybe this is due to some elements that are not supported?
Hi @BubbleSam I was able to detect the problems:
Thank you for your support.
Thank you for your feedback!
Iâm going to check the .svg format issue. If you can provide a simple demo to reproduce the problem, it will be even better because I know that this plugin in used in some projects to convert svg to pdf.
Regarding the convert action, plugin shares the progress
state which indicates current progress percentage that you can show to the application user if need.
@BubbleSam when there is a svg. image in the group you want to convert, this error appears and the conversion is stopped.
Hi @olaf ,
Are you using an external .svg file (e.g. <img src="https://****.svg">
) or svg graphics (e.g. <svg>
tag) in your app?
In the first case you should be able to export it with enabled proxy settings.
In the second case, this looks to be a bug in the internal library this plugin uses. This topic can be very useful to fix it.
Iâve just made an additional test and it works for svg:
Hello,
I have a RG that is a Invoice style.
I would like to print this as a PDF, I tried this plugin, but I canât select the whole element.
Is that possible with this plugin?
Thank you!
Hi @d.dominguezribeiro ,
Sure, you can export a Repeating Group.
Do you have a demo page / app so we can help you?
Hi, is there a way to export to PDF the #table element in the demo page without it being cut, I mean, with all the information that appears when you scroll it down?
Hi @pachocastillosr ,
Thank you for your question. PDF export works exactly like a simple print. It exports the visible data on the page. Since the table is a scrollable element, it canât export the âhiddenâ part of the table