LibreSign / libresign

✍️ Nextcloud app to sign PDF documents
https://libresign.coop
GNU Affero General Public License v3.0
480 stars 56 forks source link

Customize border or qr code at footer #3253

Open mezzomokaue opened 3 months ago

mezzomokaue commented 3 months ago

Describe the bug I don't know why, but in some files the QR Code happens to invade the written part of the PDF.

Is there any way to fix or change the layout of the QR Code so this doesn't happen?

image

vitormattos commented 3 months ago

This isn't a bug, the qrcode need to have a border to work fine. For now isn't possible to customize the border size but could be a good feature.

I recommend to generate a document with an area at footer to put the qrcode.

vitormattos commented 3 months ago

Other possible way is reducing the qrcode size.

If you want, we can implement this feature. To do this we can talk about enterprise support.

mezzomokaue commented 3 months ago

How does this corporate support work?

vitormattos commented 3 months ago

@mezzomokaue I'm Brazilian too.

You can join to group of LibreSign at Telegram and we can talk more about the ways to start a business talk between BR Serviços and LibreCode coop.

mezzomokaue commented 3 months ago

Showw

rodsmar commented 3 months ago

I've reduced QR MIN SIZE to 30 and fit my docx template, looks very well.

@vitormattos Maybe can you add a parameter in config page to adjust the qr size and text in footer.

Greetings from Tocantins (visit us during the beach season in this July)!

tmlmt commented 2 months ago

I agree this would be a great feature. A temporary quick "fix" could be to reduce from 100 to something like closer to the height of the text itself. Most PDFs get invaded by the huge QR code which is currently added.

I've reduced QR MIN SIZE to 30 and fit my docx template, looks very well.

Do you mean that you've manually changed this value in the file? https://github.com/LibreSign/libresign/blob/df5923a0fe00210419457dabe4170a6c54efa31a/lib/Handler/FooterHandler.php#L37