Giter Site home page Giter Site logo

setPageFormat() about tcpdf HOT 4 OPEN

webmarco78 avatar webmarco78 commented on May 27, 2024
setPageFormat()

from tcpdf.

Comments (4)

d-javu avatar d-javu commented on May 27, 2024

That's what AddPage() and startPage() is for, isn't it?

from tcpdf.

webmarco78 avatar webmarco78 commented on May 27, 2024

I've seen that setPageFormat() is what I need but it is not public anymore (see changelog)

from tcpdf.

d-javu avatar d-javu commented on May 27, 2024

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.

webmarco78 avatar webmarco78 commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.