Size of paper?
Hi!
I'm doing a program in wich I wan't to be able to print the contents of a JPanel. I have some graphics on this JPanel but the problem is when I print only a part of the JPanel comes out. So therefore I need to know the size of the paper in pixels to be able to adjust the size of the JPanel so that it fits the paper. How do I get the size of the paper in pixels?
Isn't there a .getSize() method?
A bit of googling got me this far:
void GetSize( Image, NumberVariable width, NumberVariable height)
Gets the dimensions of the image and stores them in the variables width, height.
arguements
image: The image whose dimensions will be stored.
width, height: The variables where the image dimensions will be stored
Dunno if it's of any help
Similar Messages
-
I am using Acrobat Pro 8 with a HP 3050 all in one. I am attempting to print two forms I created from scanned images (that have form fields) that are irregular sizes. I am only printing the form fields and not the scanned image, so my print setting is set to "form fields only". However, my form fields are not aligning with the documents I am feeding through the printer and I've noticed that there is a "document" size and "paper" size of two different sizes in the printer dialog box and have no idea why.
For example, at the bottom right of the print dialog box, the paper size says 7.0" x 3.4" (the correct/actual size) but the document size is saying 7.5 x 3.9 (not sure where this size is coming from). When I use the rulers to measure it in Acrobat, it says 7.0" x 3.4", yet when I print it out, the text is out of alignment and treating the document as if it is 7.5 x 3.9. The same thing happens with another document that I'm attemping to do the same thing with. In the print dialog box, the document size is saying 5.5" x 3.1" and the paper size is saying 5.8 x 3.9.
Is there any way to over ride or change this? I suspect it's somehow due to the HP print driver. If there's an alternative to accomplish what I'm doing, I'm open to any suggestions. I am using preprinted forms that I'd like to have fed in the printer. I don't necessarily want to re-create them in InDesign or Illustrator (I originally scanned the forms using Acrobat).
Thank you.@Bill@VT - Sorry, that didn't work with either form I'm using. It is not allowing me to enter a custom size. It is
defaulting to a 8x13 (custom) size. -
HP OFFICEJET 7110 CUSTOM-SIZ​E PAPER
I have two questions....
1- I want to print in a custom-sized paper that have the same A3 paper width.... but an AO paper length (29,7cm 1,18cm) .., and I can't add any kind of custom sized paper... is ther any way I can do that?
2- I read that the software for custom sized paper is only available por mac OS X, why!???, please make it possible for Windows!
thanks!Hello there, Welcome to the Forums! I hope you enjoy your experience
I saw your post about trying to print on a custom paper size. Below is a link to the printer specifications for your Officejet 7110. Please check the specs to see if the printer supports the size you are trying to use.
The second link below is instructions on how to add an alternate print driver that might give you the option to print in custom sizes. I suggest trying it out to see if that helps!
Product Specifications - Paper specifications
How to Assign Alternate Print Drivers in Different Versions of Windows
Best wishes,
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution! -
How can I custom size photo paper to 11" x 14" in PSE 11?
I have a Canon PRO-10 printer. I made the custom size change to 11 x 14 in the driver's printer properties, but it does not show up as a choice when I open the dropdown in PSE 11. Is there no way to use custom size paper in PSE 11? What am I doing wrong?
I don't have PSEv.11, in v.8 I do the following ---I doubt that they have changed this:
In full Editor, go to File>print
In the dialog that comes up, #3Paper size, from drop-down select Custom size
Next, #5 Print size select Custom in drop-down
This opens the "More Options" dialog>custom Print size tab. Here you can enter the dimensions.
There is also a "More Options" label one can click towards the bottom left in the print dialog - same thing, just different way to get there
Note: It's best to crop to specification prior to sending to the printer. In your hypothetical, crop to 11x14.
This way you are in control, not the printer. -
ETA or info on new book size and paper stock options, etc.
I don't know if printing services do or would coincide with product updates, and therefore we should expect these to come with a product update or not, but does anyone have any idea if there will ever be additional book sizes, paper stock and/or cover options for the books printed from Aperture?
I've printed four books from Aperture, and they make decent keepsakes, but I'd really like to step up to thicker paper stock and cover options like leather.
Is any of this in the works?
Thanks,
BradYes I have dealt with and bought plenty from them -- yes they are very secret, hence, my question. It doesn't make it easy on someone trying to plan.
Thanks,
Brad -
Small size (A6) paper printing and toner leak(pouring out) issue
We have recently purchased 15 pieces of Hp LaserJet P1102w.
We are printing reciepts of size A6 (1/4 of A4). The use of printers are quite heavy - 200 A6 pages per day.(And no other formats)
After a month of usage we are expiriencing a huge problem. (Now it has been 5 printers in period of 3 weeks):
In Some random printers the toner is pouring out. First inside of the printer and then on the table (there is a convinient opening at the bottom). This happens on one side of the cartridge. And the affected drum is heavily dirty on that side.
We checked all kind of possible causes:
The retailer pointed us to this link, that states: "
HP does not recommend printing large quantities of small or narrow paper. Printing large quantities of small or narrow paper can cause toner to leak from the print cartridge and damage the printer or cause print-quality problems."
but this is for HP LaserJet 4200, 4300 Series Printers
http://webcache.googleusercontent.com/search?q=cache:vGQOfpKgjmUJ:h20564.www2.hp.com/portal/site/hps...
My question is: is it true that heavy printing of small paper size can cause this problem? And how probable is it?
What else could have caused this?
Thank YouHi agniss,
I just sent you a private message.
If you are not sure how to check your post forum messages, this has instructions.
Thank You.
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
Gemini02
I work on behalf of HP -
How can I set up printer for "Other" sizes of paper? Example 4.5"x12"
Printer HP Deskjet 3050. I have labels on a template for Corel Draw. I can set the 4.5x12 size in the graphic program but can't find the setup for "Other" sizes in the printer setup. It doesn't even cover labels.
I don't know what operating system or driver version you are using but try this:
Click on the Windows Start button and select Control Panel.
In Control Panel, go to Printers.
Right click on your printer and select Printing Preferences
Click on the Features tab.
Look for a Paper Size drop down box. One of the selections should be Custom and you should be able to specify your dimensions there.
I am an employee of Hewlett Packard.
- - Please mark Accept As Solution if it solves your problem so others can more easily find the answer - -
- - Please click the Kudos star if you would like to say thanks - - -
How to define print size and paper
I designed an invitation in Pages and I want to print it on Staples inkjet notecard paper. There is 2 notecards to a page.
How do I define in Pages that I am using Staples or Avery notecard paper #.......
so it knows to print 2 notecards to a page and how to place them.
Thanks
-Jeff (frustrated) in NYCHi Jeff,
I've tried the "thank you" template to check this out, hope it's the same set up - (two copies per page), as you.
Go > print
below "pre-sets" (again my printer)
click on any arrow to open menu
select "layout"
select two copies per page - also when here, other variables
There is, in my printer menu, (below pre-sets) a "paper handling" selection which lets me choose which paper size to print on.
Hope it's some help,
Robert -
Strange size of paper on PDF files
Firt : sorry for my poor english, i am french...
Well, i create a A4 page with Illustrator CS3. If i save it as a PDF file, i get a A4 PDF file, everything is Ok. But if i print it with Adobe Distiller 8 through the Ai dialog box with A4 selected for the size (and no resizing), i get a A4 PDF file with my artwork reduced at 50% in the center of the page...
I tested another Distiller print with XPress7 and a A4 page is OK, no problem.
It happens only with illustrator.
In the dialog box, if i dont choose A4 but "defined by the driver" - (i don't know how to translate that in english, let's say i dont select any size and let the driver manage this), i get a good A4 PDF with the right size of artwork...
What can i do ?I found the solution : (not me in fact but another Mac user on another forum (Apple).
Well the culpit is a tiny file hidden in the system.
I give you the text i found :
" it appears to be a problem in the file located at: /usr/libexec/cups/filter/pstops If you copy that file from a working 10.5.4 installation then it should work. At least it does for me. Your mileage may vary, I'm not responsible, etc. The easiest (and likely safest) way to do this is to download the 10.5.4 combo update from Apple. http://www.apple.com/support/downloads/macosx1054comboupdate.html And Pacifist: http://www.charlessoft.com/ 1) Mount the combo update DMG and open the .pkg file using Pacifist. 2) Navigate down to /usr/libexec/cups/filter/ 3) click on pstops and hit "install" on the top left 4) enter your password 5) hit replace That's it. Keep in mind I've only tested it on my main box, but I don't see why it shouldn't work for everyone else. This likely will not break your install in case Apple comes out with a fix. If you're worried then just backup your 10.5.5 pstops file. (hit Command-G, enter /usr/libexec/cups/filter/ and copy the pstops file somewhere safe (or just rename a copy in the current location). You _may_ have to repair your permissions. "
In fact i just used Onyx to see the invisible files of the system and i did copy pstops from an old system archive to my 10.5.5 AND IT WORKS !
No more problem. -
Setting size of paper during print
Hi
I have two printers attached to the system, one is the regular printer and the other is a barcode printer. I changed the default setting of the barcode printer through windows, and I am calling the print dialog through my java code. When I select the barcode printer through the print dialog and hit the properties button, it shows me a different setting than the one I setted through start ->setting ->controlPanel->printer
Is there a way to get the same setting in the print dialog.
Could any one please help
ThanksPrinterJob printJob = PrinterJob.getPrinterJob();
PageFormat printPageFormat = printJob.defaultPage();
Paper printPaper = printPageFormat.getPaper();
Rectangle printArea = printPaper.getImageableArea();should give for example a [28, 28, 538, 785] rectangle, which takes into account the paper margins.
Hope this helped,
Regards. -
HP LaserJet MFP M476dw paper size mismatch when copying or scanning from ADF
We have HP Color LaserJet MFP M476dw that has an issue when copying or scanning from the ADF.
Put a single A4 sheet in the ADF and choose copy, with all settings correct & no resizing, and the output copy is moved down the page (increased top marging by a couple of inches).
My initial thoughts were a paper size issue (e.g. treating A4 as Letter or vice versa) but all settings look correct. I have even done a reset and started over and the problem remains.
If I take the original and place it on the flatbed and copy from there with all the same settings then it works fine.
There is a similar issue when scanning from the ADF. Again, scanning from the flatbed works fine.
I've tried all I can think of. Does anyone have any further suggestions? Could it be a fault in the ADF?
Here's the full device settings info:
Device Configuration
[Shop for Supplies][Support]
Product Information
Product Name:
HP Color LaserJet MFP M476dw
Formatter Number:
YF10C9X
Serial Number:
CNB7G2H6T9
Service ID:
24113
Firmware Datecode:
20131122
Disable Fax:
No
Telecom Version:
05-031-001
Location:
UK
ADF Installed:
Yes
Max Monochrome Print Quality:
600x8
Max Color Print Quality:
ImageREt 3600
Controller Number:
72
Duplexer Version:
0
Device Description:
HP Color LaserJet MFP M476dw
Language:
English
Default Settings:
Self-managed
Asset Number:
Your Company Name:
Contact Person:
Device Location:
Geo Location:
Product Security:
Off
Wired HW Address:
fc:15:b4:78:28:46
Wireless HW Address:
54:35:30:2f:d7:fc
Network In Use:
Wired
Host Name:
NPI782846
IPv4 Address:
192.168.9.18
IPv6 Address:
FE80::FE15:B4FF:FE78:2846
Total Memory:
256 MBytes
Available Memory:
117.7 MBytes
Installed Personalities and Options
PCL6
(20040201)
AirPrint
PCL
(20040201)
PDF
(20040201)
PS
(20040201)
USB Flash Drive:
Empty
Impressions
Total Impressions:
10684
Monochrome Impressions:
4799
Color Impressions:
5885
Total Equivalent Impressions (A4/Letter):
10684.0
Monochrome Equivalent Impressions (A4/Letter):
4799.0
Color Equivalent Impressions (A4/Letter):
5885.0
Duplex Sheets:
1223
Jam Events:
0
Mispick Events:
4
Photo Color Impressions:
0
Photo Monochrome Impressions:
0
USB Flash Drive Insertions:
0
Images Scanned to USB Flash Drive:
0
Copy Flatbed Images Scanned:
373
Copy ADF Images Scanned:
409
Copy Monochrome Impressions:
1122
Copy Color Impressions:
102
ADF Images Scanned to Host:
0
Flatbed Images Scanned to Host:
0
Images Scanned to E-mail:
0
Images Scanned to Network Folder:
0
Fax ADF Images Scanned:
23
Fax Flatbed Images Scanned:
1
Fax Impressions:
18
Images Sent from PC:
0
ADF Images Scanned:
1149
Flatbed Images Scanned:
779
Scanner Jam Events:
8
Paper Settings
Default Paper Size:
A4
Default Paper Type:
Plain
Tray 1 Size:
A4
Tray 1 Type:
Letterhead
Tray 2 Size:
A4
Tray 2 Type:
Plain
Paper Out Action:
Wait Forever
Manual Feed:
Off
Duplex:
Off
Bind:
Long Edge
Print
Auto Continue:
Off
Number of Copies:
1
Courier Font:
Regular
Orientation:
Portrait
Monochrome RET:
On
Wide A4:
No
Monochrome Resolution:
600
Monochrome Bits per Pixel:
8
Color Resolution:
600
Color Bits per Pixel:
32
IO Timeout:
120 Seconds
Jam Recovery:
Auto
Personality:
Auto
Print PS Errors:
Off
USB Flash Drive
Print Documents:
Number of Copies:
1
Paper Size:
A4
Paper Type:
Plain
Fit to Page:
On
Collation:
Off
Output Color:
Color
Print Photos:
Image Size:
10 x 15 cm
Paper Size:
A4
Paper Type:
Plain
Lighter/Darker:
<-----*----->
Number of Copies:
1
Output Color:
Color
Scan Settings:
Scan Resolution:
150
Scan File Type:
PDF
Scan Paper Size:
A4
Flatbed Scanner:
Single Page
Document Feeder:
1-Sided
File Name Prefix:
scan
Output Color:
Color
Copy
Optimize:
Auto Select
Lighter/Darker:
<-----*----->
Paper Size:
A4
Paper Type:
Plain
Collation:
On
Number of Copies:
1
Reduce/Enlarge:
Original=100%
Draft Mode:
Off
Tray Select:
Auto Select
Two-Sided:
1-Sided to 1-Sided
Multi-Page Copy:
Off
Fax
Your Company Name:
HP Fax
Answer Mode:
Automatic
Rings to Answer:
2
Distinctive Ring:
All Rings
Dial Prefix:
Off
Fax Resolution:
Fine
Lighter/Darker:
<-----*----->
Fit to Page:
On
Glass Size:
A4
Dialing Mode:
Tone
Redial if Busy:
On
Redial if No Answer:
Off
Redial if Comm. Error:
On
Detect Dial Tone:
Off
Billing Codes:
Off
Extension Phone:
On
Stamp Faxes:
Off
Private Receive:
Off
Confirm Fax Number:
Off
Allow Fax Reprint:
Yes
Print Duplex:
Off
Fax/Tel Ring Time:
20
Fax Speed:
Fast (V.34)
Error Correction:
On
Forward Fax:
Off
Block Junk Faxes:
Off
Phone Line Volume:
Medium
Alarm Volume:
Medium
Ring Volume:
Medium
Key-Press Volume:
Medium
Fax Confirmation:
Never
Fax Error Report:
Never
Include First Page:
On
Auto Log Print:
On
Print T.30 Trace:
Never
Paper Types
Plain:
Normal
HP Matte 90g:
Normal2
HP Matte 105g:
Heavy
HP Matte 120g:
Card stock
HP Matte 150g:
Extra Heavy
HP Matte 200g:
Extra Heavy
HP Glossy 120g:
Glossy
HP Glossy 150g:
Glossy
HP Tri Glossy 150g:
Glossy
HP Glossy 200g:
Heavy Glossy
Light 60-74g:
Light
HP EcoSMART Lite:
Extra Light
Intermediate:
Normal2
Mid-Weight 96-110g:
Heavy
Heavy 111-130g:
Card stock
Extra Heavy 131-175g:
Extra Heavy
Hvy Glossy 111-130g:
Light Glossy
X-Hvy Glossy 131-175g:
Glossy
Card Glossy 176-220g:
Heavy Glossy
Color Transparency:
Transparency
Labels:
Label
Letterhead:
Normal
Envelope:
Envelope
Heavy Envelope:
Heavy Envelope
Preprinted:
Normal
Prepunched:
Normal
Colored:
Normal
Bond:
Heavy
Recycled:
Normal
Rough:
Heavy
Heavy Rough:
Heavy
HP Tough Paper:
Tough Paper
Opaque Film:
Tough Paper
Energy Settings
Sleep/Auto Off After:
30 Minutes
Wake on These Events
USB Job
Yes
LAN Job
Yes
Wireless Job
Yes
Control Panel
Yes
Fax Ring
Yes
Shut Down After:
Never
LaserJet Updates Settings
Check Automatically
Yes
Prompt Before Install
Yes
Allow Downgrade
Yes
Allow Updates
Yes
Miscellaneous
Extended print modes modified:
No
Very Low Setting (Black Cartridge):
Prompt
Very Low Setting (Color Cartridges):
Prompt
Low Threshold (Black Cartridge):
5%
Low Threshold (Cyan Cartridge):
3%
Low Threshold (Magenta Cartridge):
3%
Low Threshold (Yellow Cartridge):
3%
Store Usage Data:
On Supplies
USB Connection:
No
Font Source:
I (Internal)
Font Number:
23
Font Pitch:
10.00
Font Point Size:
12.00
Symbol Set:
PC-8
Form Length:
64 Lines
Append CR to LF:
NoTo get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at Commercial Forums.
I hope this helps!
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution! -
How can I select paper size while in print preview ?
I have a printer with four different paper trays, and each one is loaded with different size of paper: A3, A4, Legal, envelopes. When I use IE 11, I can easy go to print preview, click on page setup (little gear icon), select paper size , margins, etc.. there, and when i hit OK, the page is adjusted to the settings I selected and its ready to print, and printer selects the proper size of the paper automatically
In Firefox v32, I can almost do this same, but I'm stuck with printing only on A4 style paper, as I don't see where to select the paper I want to print on !
I tried to select A3 and legal paper in the printer driver, but then firefox used the selected paper, but printout on the paper came out as set to A4 size, and rest of the page was empty ! Also I was not able to see the page preview of the selected paper either. How do I then print on other size papers than a4 ?
I found only one workaround which does not suits my needs but works: First: Go to printer driver and select legal or A3 paper as default, and then open firefox. If I do that i can print on any paper I select, but thats a horrible workaround, because then I often forget to change the default paper size back inside the printer driver, and i print my documents on wrong paper, wasting paper, ink and time...
Please let me know if there is a way to fix this printing feature somehow.
Thanks.MichalB,
Sorry, IMO there is no real "fix" for what you are experiencing. Printer prefs set or changed in the operating system won't affect Firefox printing ''[IMO, either ancient code in Firefox or a "cross-browser thing".]'' Firefox has its' own settings for prefs and it defaults to the "last used" for all printer preference setting. And there is no way to set a pref as "use now and return to my defaults after this print job is completed".
As you have found out, there is no way of changing paper size from the Print Preview screen. Other prefs - Margins & Header/Footer can be changed via Page Setup and you can see changes in the Preview window, but not for paper size. As ''CoryMH'' mentioned, '''paper size''' is selected thru what called the "native print dialog" box using the '''Properties''' button which shows a window provided by your printer software for the Printer which is selected in the "native print dialog" window, and accessed after you hit the Print button in the Print Preview screen.
Problem is that you can't '''"preview"''' what is going to be printed when you change paper size. If you go back to Print Preview without printing from the "native print dialog" the change for Paper Size isn't saved for viewing in Print Preview!
IMO, it would be nice if Firefox recognized each "tray" as a separate printer, so that a user could set Margins & Header/Footer prefs AND paper size per tray. IOW, a feature sort of writing a completely new print module that would reflect "today's" environment with multiple tray printers; rather than to continue using the print module that was built by Netscape back in '94 - '95, which we are stuck with almost 20 years later.
''As I sit here shaking my head after composing this reply, wondering why the issues I had back in 2002 with printing from Firefox / Firebird / Phoenix haven't been corrected in the last 14 years.''
''I do like "old stuff", and have a vehicle sitting my driveway that rolled out of the showroom 30 years ago come October 1 - a 35th birthday present I purchased for myself. [85 Corolla GTS TwinCam coupe - aka Sprinter in GTA] But as far as computer software, I prefer it to be compatible with hardware made in this century.'' -
Unable to figure out paper sizes in PSE 9...
Hi, I am trying to print a 4x6 photo... when I click print the pse print window opens and asks to select: printer, paper size & print size. I don't know what paper sizes they are offering, ex: KG, KG.NMg, PhotoPaper2L, PhotoPaper2L.NMgn, PhotoPaperRoll, PhotoPaperRollNMgn, etc.... ?? When I select these and try to print my 4x6, my image is cut off the edge. What are these paper sizes? and what should I select to print a standard 4x6 photo? Thanks for your help.
Thanks for your reply, "no margin" is probably right, but still unsure what the sizes are. I don't know why'd they be metric. Other options on the list were the standard: a4, letter, legal, 8x10in (that looks like a photo size), and some other ones I've never seen before: HiVision 102x180 , Env10 (guessing envelope size), A6.Maximum (??), and Halfletter. These are the selection for the window for PSE9.... once I move to the next window (after selecting print on the pse window)... my printer window comes up and all is well, though there is not a place to select paper size, just paper type (glossy, etc). Very frustrating to waste so much costly photo paper.
-
Custom paper size - seems scaled for A4
Hi,
I'm trying to print on the front of a card which when unfolded is 15cm x 30cm.
I've made a PDF in Inkscape (page size matches paper dimensions) and opened it in Preview.
I set a custom paper size of 15 x 30cm for my printer (Samsung ML-2010) in the page setup dialogue. The scaling set to 100%. When I print preview everything looks fine.
However, when I print it seems to be scaled for a much larger page and the text is much larger than original and runs off the page. If I print it onto an A4 sheet everything fits but the text is still larger than intended.
Any ideas on what's going wrong?Unfortunately I don't seem to have that Scale to Fit option... just the usual Scale bit below the orientation (in Page setup) which I currently have at 100%.
-
Choose paper source by PDF page size
I print on different sizes of paper. I am trying to get this function to print to the correct tray on our printer, but it is not working. If I print out a legal or 11x17 size document with this option checked, it prints out on letter size paper with a tiny image in the upper left hand corner. Help, anybody? Being able to do this would save me quite a bit of time, instead of having to change the size in the printer properties every time.
A legal sized document should not be printing "in a tiny corner" of a
letter sized paper, no matter what combination of options are chosen.
It might print at the correct size, and be cut off, or be scaled down
to fit; these are the only two proper results.
So, this is probably the thing to fix first.
What happens if you explicitly choose legal sized paper in printer
setup and print the legal sized PDF files?
Aandi Inston
Maybe you are looking for
-
Is EC-PCA Controlling Area Settings configured as new GL function/Classic?
Hi guyz, I need to configured Profit Center Local Currency in order to execute Profit Center Standard Report. As far as I know, in Classic Profit Center Accounting, I configure it at EC-PCA Maintain Controlling Area Settings at SPRO. Where can I conf
-
Calling Data Services Web Services via Oracle Triggers?
Hi, Has anyone called Data Services web service via an oracle trigger? If so i'm interested in your experiences with volume and perfromance. Thanks Richard
-
I have Photoshop CC 2014, can I also install the previous photoshop CC?
Kubota dashboard does not work with the 2014 version
-
Can an image be uploaded into a fillable pdf?
In creating a fillable pdf document is there a way to allow an image to be uploaded onto the document?
-
What do I do when I plug in my iPod to charge and it says "USB Device not recognized"?
What do I do when I plug in my iPod to charge and it says "USB Device not recognized"?