Need help with pdf creator

I have a content which I want to export to PDF using the pdf creator, all seems to be working fine. But my content are wrapped in a bootstrap 5 card and i want the card border to be seen on the exported pdf.
I have set the card border to 2px and color to black but the border don't appear on the pdf. Any suggestions please?