X-Received: by 2002:a0c:ba1a:: with SMTP id w26mr7494266qvf.23.1551964447642; Thu, 07 Mar 2019 05:14:07 -0800 (PST) X-Received: by 2002:a25:9a41:: with SMTP id r1mr1005858ybo.295.1551964447367; Thu, 07 Mar 2019 05:14:07 -0800 (PST) Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!m21no3814165qta.0!news-out.google.com!y15ni1578qta.0!nntp.google.com!m21no3814156qta.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Thu, 7 Mar 2019 05:14:07 -0800 (PST) In-Reply-To: <33a86a7a-f9d6-43ed-ba29-57c049239b25@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.78.95.177; posting-account=2czF5goAAAD4GBMPIGV4KcD2K4PhoB_H NNTP-Posting-Host: 50.78.95.177 References: <33a86a7a-f9d6-43ed-ba29-57c049239b25@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Javax Print : truncated document From: Eric Douglas Injection-Date: Thu, 07 Mar 2019 13:14:07 +0000 Content-Type: text/plain; charset="UTF-8" Lines: 8 Xref: csiph.com comp.lang.java.programmer:38804 On Thursday, March 7, 2019 at 6:19:36 AM UTC-5, antoni...@gmail.com wrote: > How can I do this? > I'm looking for some solution but are still ignored > > Is there an example? Your sample code is not complete enough to see your problem. You need to set the printable area to tell it where to print on the page. You can force the margins to anything you want. If you print a custom object, you can implement Printable and/or Pageable and override the print method where you get an instance of the printer's graphics which should have an imageable value set to it's default margins. I'm not clear what you're trying to print, what exactly is cut off, or how you're printing it. Your sample here doesn't print anything.