Code Monkey home page Code Monkey logo

Comments (9)

mailidpankaj avatar mailidpankaj commented on May 30, 2024 1

Hi Philip,

Sure, you can add it to the test suite. Please remove any proprietary information(package name or any other proprietary information) if found in the code before publishing it to test suite.

Please let me know how can I create two tables in the same page? I should be able to set the margin and position for both tables wherever I want to position them on the same page.

Regards,
Pankaj

from ph-pdf-layout.

mailidpankaj avatar mailidpankaj commented on May 30, 2024

Please change the file extension from .DOCX to .java before opening the file.

Regards,
Pankaj

from ph-pdf-layout.

phax avatar phax commented on May 30, 2024

Hi @mailidpankaj can I use your example code and add it to the test suite?
Would you agree that I publish this as part of the library under Apache 2.0 License?

from ph-pdf-layout.

phax avatar phax commented on May 30, 2024

It took some time but it's pretty simple:
change the "margin bottom" of the first table from 500 to something lower as in .setMargin (50, 40, 25, 200) and so the final layout contains the tables below each other:
grafik
hth

from ph-pdf-layout.

mailidpankaj avatar mailidpankaj commented on May 30, 2024

Hi,

While I have changed the .setMargin (50, 40, 25, 40) and the final layout contains two tables on the same page, but I am not able to reduce the space between top and down table. Strangely I have tried to set the .setMargin (50, 40, 25, 40) for both the table and but I see the space between two tables is still the same.

image

Please suggest how can I reduce the space between two tables. Attached is the picture for the reference.

Regards,
Pankaj

from ph-pdf-layout.

phax avatar phax commented on May 30, 2024

This is very simple - get rid of any top and bottom margin.
In the example code I am only using "margin left" and it does the trick

from ph-pdf-layout.

mailidpankaj avatar mailidpankaj commented on May 30, 2024

Getting rid of any top and bottom margin has removed "all" the space from top and down table. How can I create little space between two tables?

from ph-pdf-layout.

phax avatar phax commented on May 30, 2024

A little space is like 5 or 10.
So if you just want this add either "setMarginBottom(10)" to table1 or "setMarginTop(10)" to table2

from ph-pdf-layout.

mailidpankaj avatar mailidpankaj commented on May 30, 2024

Thanks, table space worked.

from ph-pdf-layout.

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.