• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PDF in the background of the Panel (Experts only)

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Manoj Amrutkar
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Is this the real life? Is this just fantasy? Is this a tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic