angular icon indicating copy to clipboard operation
angular copied to clipboard

[Custom Components] How can I use Custom Components in PDF builder?

Open romapelypets opened this issue 5 years ago • 5 comments

I have created Custom Component and have applied it to my PDF builder. But I got an error Unknown component: customcomponent. How can I use it?

romapelypets avatar Feb 21 '20 10:02 romapelypets

Did you setup according to the wiki https://github.com/formio/angular-formio/wiki/Custom-Components-with-Angular-Elements and does it work for you inside the regular formio component or formbuilder?

merobal avatar Feb 21 '20 16:02 merobal

Yeah, sure. I set up according to the wiki and it's working for regular builder, but not for PDF

romapelypets avatar Feb 21 '20 16:02 romapelypets

Any updates?

romapelypets avatar Feb 24 '20 15:02 romapelypets

The PDF builder is pretty opinionated which components it allows to be included in PDF's since many components are not compatible with the PDF rendered form. As of right now, we don't have a way to indicate that you wish to include your custom component in the PDF builder, but there may be a way to hook into the options to override default behavior, but this is not something I have done myself.

travist avatar Feb 25 '20 15:02 travist

Am I correct in understanding if I wish to include a custom component in to a PDF I have to alter PDF builder and not the renderer? I can get my component to work in a PDF builder but the component is not recognised on PDF rendered form while filling it out. Same component works fine in a "form" render. Any code sample on how to add custom component to pdf would be appreciated for @formio/react Screenshot 2021-11-03 at 12 06 14 .

.

Screenshot 2021-11-03 at 12 17 31

ivoscode avatar Nov 03 '21 12:11 ivoscode

We're currently addressing a backlog of GitHub issues, and as part of this effort, some inactive issues may be marked as closed. This isn't a dismissal, but a step toward more efficient tracking.

If you feel the issue is still relevant, please re-open and we'll ensure it gets the attention it deserves. Your understanding is appreciated as we work to enhance our open-source responsiveness.

Sidiro23 avatar Feb 07 '24 14:02 Sidiro23

Is there another ticket or solution for this problem?

Zanaxhir avatar Feb 19 '24 12:02 Zanaxhir