This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes PDF in the background of the Panel (Experts only) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "PDF in the background of the Panel (Experts only)" Watch "PDF in the background of the Panel (Experts only)" New topic
Author

PDF in the background of the Panel (Experts only)

Manoj Amrutkar
Ranch Hand

Joined: Apr 15, 2006
Posts: 47
I have one swing application, where LayeredPane is embeded in the Frame.

I am having one pdf which has some form like controls.

I want pdf on the bottom layer and some swing control on top of them.

Currenly what i have done is i took a .gif image from pdf using some pdf to image converter.

But when i am resizing my application window (i am resizing image also), image gets blurred.

That's not the case with actual pdf. In adobe you can stretch the pdf to any level without blurring the pdf content(say i have some tax form).

I have heard of vector image as one solution to this problem.

Please can any one give some details on the same.

Or if you have any other apporach please tell me.

thanks in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41635
    
  55
Yes, vector graphics can be scaled without loss of quality, but images can't, generally. And you won't get a vector graphic from a PDF, so that doesn't really help.

What is the background image going to accomplish anyway? Wouldn't you rather use a proper Swing GUI the layout of which can adapt during resizing?

BTW, I don't understand what the "(Experts only)" in the subject line is supposed to mean. I think it may have the effect of limiting the number of people reading your post, which is something you don't want to do.


Ping & DNS - my free Android networking tools app
Manoj Amrutkar
Ranch Hand

Joined: Apr 15, 2006
Posts: 47
Thanks a lot!,

Well first of all sorry for that Expert only TAG.

Now getting back to my problem. We allready have that software running. And no time to get the steps back for new GUIs.

Can i have some software which will convert the pdf in to some QUALITY format image (say better than gif), so that it can be scaled without blurring effect. After all we just have simple form (say TaxForm like 1040) type documents on those pdfs and doesn't have any pictures.

Anything that can help me to improve the image quality on scaling.

Thanks in advance!

Cheers
Manoj Amrutkar
Ranch Hand

Joined: Apr 15, 2006
Posts: 47
Another solution,

could be for this problem is, i can have a simple pdfviewer on the bottom layer of layered pane.

I tried adobe acrobat viewer(with frame), but it has sevrel problem and the major one is it's not working with layered pane. Another problem is its been developed in AWT, so i am facing the problem of light weight - heavy weight.

If any one has tried the same, please help me!

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PDF in the background of the Panel (Experts only)