Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9140557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:31:54+00:00 2026-06-17T09:31:54+00:00

i have encountered a problem maximum page size allowed in iTextsharp, so when i

  • 0

i have encountered a problem maximum page size allowed in iTextsharp, so when i try to generate a document with size superior to 14 400 , i get an message error the.page.size.must.be.smaller.than.14400.by.14400.its.1.by.2, i tried to play with userunits like described here , but i have not found a solution.

i generate the PDF by merging file in one page using AddTemplate(), i think to scale the pdf dimensions by 1/4 for eg, and set userunits to 4, but i think that i should scale the imported pages too , any help in this way because i don’t know how to scale imported pages, i not sure if this the right solution.

 PdfImportedPage imp1 = wr.GetImportedPage(r1, 1); 
 wr.DirectContent.AddTemplate(imp1,(float)(x*cm),(float)(y*cm));

Any help please or any suggestion

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:31:55+00:00Added an answer on June 17, 2026 at 9:31 am

    As you make clear in your comment that your problem in testing your solution (DirectContent.AddTemplate applied to a PdfImportedPage) actually is that you don’t know how to scale imported page, here a pointer to an example that shows how to do right that.

    Have a look at the sample NUpTool.cs translated from the matching Java sample NUpTool from chapter 6 of iText in Action — 2nd Edition. The variable factor here describes the scaling factor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have encountered a problem. When I use jQuery to load a page that
I have encountered a problem I can't really figure out - I can't get
I'm working on an ASP MVC website and have encountered a problem. The page
Today I have encountered a problem that required me to determine the maximum index
I have encountered a problem with creating a thumbnail from an uploaded image file,
I have encountered a problem in one of my Java projects, which causes bugs.
I have encountered a problem twice now whereby a producer thread produces N work
I have encountered a problem of placing data into the Table View. Here is
I have encountered a problem in my application. I have two forms, one that
I have encountered the problem to start different version of jboss in the same

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.