ImNoobSarry
ImNoobSarry

Reputation: 31

Is it possible that I add margin border line or frame on TCPDF?

Is there anyway that I can put frame of my pdf(tcpdf) ?

or just a simple border margin box like border:2px solid black; will do.

I just discover tcpdf and I check their example and I can't find about frame.

Upvotes: 0

Views: 385

Answers (2)

Dwayne Towell
Dwayne Towell

Reputation: 8623

You could use this method: PDF, PHP, which uses SetLineStyle().

Upvotes: 1

hcoat
hcoat

Reputation: 2643

What you are looking for can be controlled with:

Rect()

TCPDF shows an example called graphic methods (PHP) (PDF).

Also, you can look at:

SetMargin

It can take a bit of setup but works nicely.

Upvotes: 1

Related Questions