• Post Reply Bookmark Topic Watch Topic
  • New Topic

iTextPDF Isssue  RSS feed

 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all i have a swing application. I'm generating a PDF file using the code below:



when I run that application using NetBeans it works fine. Now when I create a set up file the installer for my project and install it in another system at that time it creates a pdf file of size 0 KB which doesn't even open in adobe reader? What should I do?
 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Install Creator to create installer for my java applications.
 
Partheban Udayakumar
Ranch Hand
Posts: 499
AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pranit sonawane,

Do you have the folder D:\UV Receipts in the machine you install your jar?
 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I do!
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there any exceptions when the problematic PDF is created?
 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NOting!
 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a while ago I created a sample frame and a button on it clicking on which we can create sample pdf. Same thing has happened I have the destination folder. but the problem occurs only when I create an installer for it.
 
Partheban Udayakumar
Ranch Hand
Posts: 499
AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pranit Sonawane,

I haven't used Install Creator. Does this create an exe file? If so, clean and build your project, take the jar and run it in the machine. Then you will know where the problem is.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!