• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to send fax and we must send pdf files fhrough fax  RSS feed

 
srikanth pidikiti
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am already using rfax for sending fax but i am unable to send attachment to that if any body know plz suggest me for doing this.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You posted no fewer than seven threads here at JavaRanch asking about this; I just deleted a number of the overt duplicates. You could have used that time more wisely reading the RFax documentation -- for example, the question from their FAQ entitled How can I FAX PDF files?
 
srikanth pidikiti
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir i am using Rfax1.1 while sending pdf file it is not getting output but it is sending empty fax i am using this code for doing that.


try {
AcrobatFaxProducer pdf=new AcrobatFaxProducer();
pdf.setPDFFile("c:\\report.pdf");
FaxModem fm= new FaxModem();
pdf.pageImage=new BufferedImage(800,1290,java.awt.image.BufferedImage.TYPE_INT_RGB);

FaxModem m=new FaxModem();
m.setPortName("COM1");
m.flowControl=m.FLOWCONTROL_XONXOFF;
m.faxClass=2;
m.AtFBOR=true;
m.open(p);
if (m.sendFax("11111111")) System.out.println("Success ***");
else System.out.println("FAILED");
m.close();
}
catch ( Exception e ) { e.printStackTrace();}

if any modifaction for this suggest me plz....
thanks in advance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!