Comments (4)
That's what AddPage() and startPage() is for, isn't it?
from tcpdf.
I've seen that setPageFormat() is what I need but it is not public anymore (see changelog)
from tcpdf.
AddPage($orientation, $format, ...)
calls startPage($orientaion, $format, ...)
which in turn calls _beginpage($orientation, $format)
. This last function calls setPageFormat()
depending on circumstance.
Specify the correct orientation (P/L PORTRAIT/LANDSCAPE) and format (A4/A5, etc.) when adding a new page to your document.
If I'm being stupid, please specify your use-case in more detail, so I can work out what you are trying to achieve.
I'm quite certain that you are not trying to change the page format in the middle of writing out a page, so I don't understand why you need to call it directly, and not just specify the required orientation/format at the time of adding a new page.
from tcpdf.
I am using a "framework" that partly uses tcpdf for pdf generation.
It is a long and boring explaination.
The framework developer will implement a parameter for page format that he will add and use when calling the tcpdf constructor.
I just asked if in the meantime does exist a method for page format setting since setPageFormat is not publicc
Thank you
from tcpdf.
Related Issues (20)
- Update comment for renamed serializeTCPDFtagParameters
- print pdf bug: when the page more then 1000
- Font file cannot be found on unix system because auf case sensitivity
- Snyk path traversal vulnerability HOT 8
- Using form fields relies on helvetica font
- Baroce label design look weird. NEED HELP
- Disappeared 6.7.x tags HOT 10
- TCPDF vulnerable to Regular Expression Denial of Service
- missing Documentation on K_ALLOWED_TCPDF_TAGS HOT 2
- Exclude indents from the nested tables HOT 1
- Some kanji characters cannot be displayed HOT 1
- Why SVG images using <path> elements create larger file sizes than those using <defs> elements?
- SetProtection() with hashed string
- Get PDF attachment
- getNumPages returns only current page in Header() function
- Wrong /Length calculation in xobjects
- CVE-2024-22641 HOT 3
- Issue: CJK Characters Not Displaying After Adding Noto Sans Fonts in TCPDF 6.7.5
- preg_replace - NULL for 3rd parameter on tcpdf.php:16560
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcpdf.