Re: Printing issue

2008-01-28 Thread Muralidhar_YARAGALLA
Hi some one suggested dosprint for pdf files. It is erong. Dosprint cannot 
print PDF files. 

Thanks And Regards,
Muralidhar Yaragalla.


This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 
Do not print this message unless it is necessary,
consider the environment.

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.


Re: Printing issue

2008-01-27 Thread Muralidhar_YARAGALLA
I dont think that you can convert pdf to anything else using fop. Idont 
think this is the right place for our requirement.  I found an 
alternative. Use command line pdf printing tools which are commercially 
available. That is the best alternative that I find.

Thanks And Regards,
Muralidhar Yaragalla.



Extranet
[EMAIL PROTECTED]
01/27/2008 10:41 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users
cc

Subject
Re: Printing issue







Hi Alexander,

   Thanks a lot for your reply. I have few questions in your example.
 
 1)I have only existing pdf file and don't have any xml, xsl and other
files. How can we convert  pdf to psfile. In your exmple  to create ps
file  xml and xsl are needed. 

  FOPTransformer.getInstance().createPostscript(psFile,  xml, xsl);

 2)In order to create PS file from PDF  do i need xml and xsl files. 
Infact
i dont have any idea on xsl files. 
   All i need is print the existing pdf file directly to the printer.

Really i appreciate your answers,
 
Thanks,
Mike.

 
 





-- 
View this message in context: 
http://www.nabble.com/Printing-issue-tp15082765p15121322.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 
Do not print this message unless it is necessary,
consider the environment.

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.


Re: Printing issue

2008-01-27 Thread Muralidhar_YARAGALLA
Hi, almost the code you wrote is a normal code to print docs in java. but 
the problem is all doc flavaours are not supporetd by all the printers. My 
printer supports only few. I am not sure about PCL flavour also. Any way 
will try and see.

Thanks And Regards,
Muralidhar Yaragalla.



Extranet
[EMAIL PROTECTED]
01/26/2008 03:07 AM
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users
cc

Subject
Re: Printing issue







Muralidhar,
I am also getting same king of problem. I have already existing pdf
file. I want to  print the pdf file without user interaction. I have 
goggled
and got some information.

  InputStream is = new BufferedInputStream(
new FileInputStream("c:\\test.pdf")); 
// Here  we need to convert pdf to pcl using fop 
 byte[] data = null; /* the fop output */; 
DocFlavor flavor = DocFlavor.BYTE_ARRAY.PCL;
PrintService service =
PrintServiceLookup.lookupDefaultPrintService();
DocFlavor[] flavors = service.getSupportedDocFlavors();
// Create the print job
DocPrintJob job = service.createPrintJob();
Doc doc = new SimpleDoc(data, flavor, null);
// Print it
job.print(doc, null); 

Murali , The above code may gives you some idea to print pdf , but we
have to know how to convert  PDF file to PCL using FOP.
 
 









-- 
View this message in context: 
http://www.nabble.com/Printing-issue-tp15082765p15097273.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 
Do not print this message unless it is necessary,
consider the environment.

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.


Re: Printing issue

2008-01-27 Thread Muralidhar_YARAGALLA
I think cups is to generate pdf not to print pdf files. It basically 
installs printer and when the other sort of docs sent to this printer it 
generates pdf(called printing to pdf). It is not of my requirement. 
Thanks And Regards,
Muralidhar Yaragalla.



Extranet
[EMAIL PROTECTED]
01/25/2008 08:01 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users
cc

Subject
Re: Printing issue







It's possible to generate output for the printer with FOP, but it sounds 
like you really have PDF and just want to get that to the printer.  Right?

Look at CUPS - a quick google on cups+print+pdf will get you nearly all 
you need.

In general, getting something to print is 90% a sysadmin issue involving 
obscure interactions between the host OS and the printer, so you won't 
find any complete recipe; you'll have to experiment.

Steve

On Fri, 25 Jan 2008, [EMAIL PROTECTED] wrote:

> Hi I have tried with the "-print"  command of fop. It says "Content not
> allowed as input file" . Even i had gone through your embeded example it
> also shows that the input file should be of extension *.fo . I have
> googled a lot on printing pdf. There are so many threads in the forums 
on
> the same. None had a solution. After so much of effort in googling then 
I
> just came to try with fop as it generates pdf. But I think this does not
> do what I want. So just thinking what could be done.
>
> There are some command line pdf printing tools available commercially. 
And
> also some java api. But I dont find any open source or some sort of free
> tool for this.
>
> I am specifically looking for some tool which does not require any user
> intervention. It should not show any popup or dialouge boxes. It should
> happen silently in the background.
>
> Thanks And Regards,
> Muralidhar Yaragalla.
>
>
>
> Extranet
> [EMAIL PROTECTED]
> 01/25/2008 04:27 PM
> Please respond to
> fop-users@xmlgraphics.apache.org
>
>
> To
> fop-users
> cc
>
> Subject
> Re: Printing issue
>
>
>
>
>
>
> Have you tried the -print option just to see if that would be an option
> for you? The experiment only takes you two minutes but might save you a
> lot of trouble.
>
> Options for printing PDF are:
> - remote-control Adobe Acrobat using COM on Windows.
> - GhostScript can print PDFs. I'm not sure what the automation grade
> would be.
> - There are various PDF tools on the internet that might help you here.
> GIYF.
> - Some (more expensive) printers support printing PDF directly.
>
> On 25.01.2008 11:48:34 Muralidhar_YARAGALLA wrote:
>> Ya I think we cannot print the pdf documents with fop. It is only
> possible
>> if you are generating pdf using fop. It takes the input file (which
> cannot
>> be pdf) and renders that into various paginated output file but the
> input
>> file will be processed and will be sent to the printer not the 
generated
>
>> output.
>>
>> If I am wrong please correct me. If there is any way that i can print
>> already existing pdf kindly tell me.
>>
>> Thanks And Regards,
>> Muralidhar Yaragalla.
>>
>>
>>
>> Extranet
>> [EMAIL PROTECTED]
>> 01/25/2008 02:06 PM
>> Please respond to
>> fop-users@xmlgraphics.apache.org
>>
>>
>> To
>> fop-users
>> cc
>>
>> Subject
>> Re: Printing issue
>>
>>
>>
>>
>>
>>
>> FOP has PDF generation capabilities but FOP cannot print PDF files (you
>> need a different tool for that). However, if it's only about printing
>> the generated document (I say document here, not PDF, because PDF is
>> just one possible output format of FOP), you can also use the
>> "PrintRenderer" which doesn't generate a PDF but uses Java2D/AWT to
>> print the document using Java's printing capabilities.
>>
>> On the FOP command-line, this is the "-print" parameter. For embedded
>> use, have a look at:
>>
> 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2OldStylePrint.java?view=markup

>
>>
>>
>> Note to self and fop-devs: Since we're now on Java 1.4 we can/should
>> eventually switch over to using JPS.
>>
>> On 25.01.2008 08:54:40 Muralidhar_YARAGALLA wrote:
>>> Hi I know with fop we can generate PDF documents but can we print them
>
>>> programatically without user intervention.  I need to fetch the pdf
>> files
>>> from a folder and i have to send them for printing. no pop up and no
>> user
>>> intervention should be there. It should happen silently in the
>> background.
>>

Re: Printing issue

2008-01-27 Thread Muralidhar_YARAGALLA
Thanks for the suggestion.
Thanks And Regards,
Muralidhar Yaragalla.



Extranet
[EMAIL PROTECTED]
01/25/2008 06:03 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users
cc

Subject
Re: Printing issue






[EMAIL PROTECTED] wrote:
>
> There are some command line pdf printing tools available commercially. 
> And also some java api. But I dont find any open source or some sort 
> of free tool for this.
>
> I am specifically looking for some tool which does not require any 
> user intervention. It should not show any popup or dialouge boxes. It 
> should happen silently in the background.
>

If you are on Windows, you can try this tool: 
http://www.geocities.com/dosprint. It is not free, but for $40 it won't 
make you go bankrupt, I hope ;)

HTH,
Cheers,
-- Abel Braaksma

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 
Do not print this message unless it is necessary,
consider the environment.

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.


Re: Printing issue

2008-01-27 Thread mikeanderson

Hi Alexander,

   Thanks a lot for your reply. I have few questions in your example.

 1)I have only existing pdf file and don't have any xml, xsl and other
files. How can we convert  pdf to psfile. In your exmple  to create ps
file  xml and xsl are needed. 

  FOPTransformer.getInstance().createPostscript(psFile,  xml, xsl);

 2)In order to create PS file from PDF  do i need xml and xsl files. Infact
i dont have any idea on xsl files. 
   All i need is print the existing pdf file directly to the printer.

Really i appreciate your answers,
   
Thanks,
Mike.

  






-- 
View this message in context: 
http://www.nabble.com/Printing-issue-tp15082765p15121322.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Printing issue

2008-01-26 Thread Alexander Lohse

Hi Muralidhar,

we do the same, but the best way I found is to use FOP to create  
postscript and send this directly to PS-enabled printers.


This works fairly well, but leaves most Inkjet-Printer aside as they  
usually cannot interpret postscript.


Regards,

Alex

Here is some sample code:

DocFlavor flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;

PrintRequestAttributeSet attributes = new  
HashPrintRequestAttributeSet();

attributes.add(MediaSizeName.ISO_A4);

PrintService[] services =  
PrintServiceLookup.lookupPrintServices(flavor, attributes);
PrintService defaultService =  
PrintServiceLookup.lookupDefaultPrintService();


// You do not have to use this dialog
		// Just select the PrintService via getName() and manuelly modify  
your PrintRequestAttributeSet
PrintService service = ServiceUI.printDialog(null, 200,  
200, services, defaultService, flavor, attributes);


if (service != null) {

StringBuffer info = new StringBuffer();
info.append(service.getName()).append(": ");
for(Attribute attribute : attributes.toArray()) {
System.out.println("attribute: " + attribute);
if (attribute instanceof MediaTray) {
MediaTray tray = (MediaTray) attribute;
 
info.append(tray).append(" (").append(tray.getValue()).append(")");

}
}

File psFile = TemporaryFile.create("ps");

log.info("creating postscript file at: " +  
psFile.getAbsolutePath());


		// This is just a helper tool I wrote for FOP using MIME-TYPE  
postscript

// replace this with your FOP transformation
FOPTransformer.getInstance().createPostscript(psFile,  
xml, xsl);


final InputStream is = new FileInputStream(psFile);
SimpleDoc doc = new SimpleDoc(is, flavor, null);
DocPrintJob job = service.createPrintJob();
job.addPrintJobListener(new PrintJobAdapter() {

public void  
printDataTransferCompleted(PrintJobEvent pje) {

log.info("print-job transfer completed");
printJobEnded();
}

public void printJobNoMoreEvents(PrintJobEvent  
pje) {

log.info("print-job no more events");
printJobEnded();
}

public void printJobCompleted(PrintJobEvent pje) {
log.info("print-job completed");
printJobEnded();
}

public void printJobCanceled(PrintJobEvent pje) {
log.info("print-job cancelled");
printJobEnded();
}

public void printJobFailed(PrintJobEvent pje) {
log.info("print-job failed");
printJobEnded();
}

public void  
printJobRequiresAttention(PrintJobEvent pje) {

log.info("print-job attention");
}

private synchronized void printJobEnded() {
try {
is.close();
} catch (IOException exc) {
exc.printStackTrace();
}
}
});

job.print(doc, attributes);
}

Am 25.01.2008 um 22:53 schrieb Jeremias Maerki:


On 25.01.2008 22:37:38 mikeanderson wrote:


Muralidhar,
   I am also getting same king of problem. I have already existing  
pdf
file. I want to  print the pdf file without user interaction. I  
have goggled

and got some information.

 InputStream is = new BufferedInputStream(
   new FileInputStream("c:\\test.pdf"));
   // Here  we need to convert pdf to pcl using fop
byte[] data = null; /* the fop output */;
   DocFlavor flavor = DocFlavor.BYTE_ARRAY.PCL;
   PrintService service =
PrintServiceLookup.lookupDefaultPrintService();
   DocFlavor[] flavors = service.getSupportedDocFlavors();
   // Create the print job
   DocPrintJob job = service.createPrintJob();
   Doc doc = new SimpleDoc(data, flavor, null);
   // Print it
   job.print(doc, null);

   Murali , The above code may gives you some idea to print pdf ,  
but we

have to know how to convert  PDF file to PCL using FOP.



FOP cannot convert PDF into anything FOP can only produce PDF! You
need a different tool.

Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO

Re: Printing issue

2008-01-25 Thread mikeanderson

Do you know Is there any tool to convert PDF to PCL or any better way to
print the pdf file directly to the printer. Please provide the links if
anyone knows.
Thanks In Advance,
Mike.

-- 
View this message in context: 
http://www.nabble.com/Printing-issue-tp15082765p15097899.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Printing issue

2008-01-25 Thread Jeremias Maerki
On 25.01.2008 22:37:38 mikeanderson wrote:
> 
> Muralidhar,
> I am also getting same king of problem. I have already existing pdf
> file. I want to  print the pdf file without user interaction. I have goggled
> and got some information.
> 
>   InputStream is = new BufferedInputStream(
> new FileInputStream("c:\\test.pdf"));
> // Here  we need to convert pdf to pcl using fop 
>   byte[] data = null; /* the fop output */; 
> DocFlavor flavor = DocFlavor.BYTE_ARRAY.PCL;
> PrintService service =
> PrintServiceLookup.lookupDefaultPrintService();
> DocFlavor[] flavors = service.getSupportedDocFlavors();
> // Create the print job
> DocPrintJob job = service.createPrintJob();
> Doc doc = new SimpleDoc(data, flavor, null);
> // Print it
> job.print(doc, null);  
> 
> Murali , The above code may gives you some idea to print pdf , but we
> have to know how to convert  PDF file to PCL using FOP.
>

FOP cannot convert PDF into anything FOP can only produce PDF! You
need a different tool.

Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Printing issue

2008-01-25 Thread mikeanderson

Muralidhar,
I am also getting same king of problem. I have already existing pdf
file. I want to  print the pdf file without user interaction. I have goggled
and got some information.

  InputStream is = new BufferedInputStream(
new FileInputStream("c:\\test.pdf"));
// Here  we need to convert pdf to pcl using fop 
byte[] data = null; /* the fop output */; 
DocFlavor flavor = DocFlavor.BYTE_ARRAY.PCL;
PrintService service =
PrintServiceLookup.lookupDefaultPrintService();
DocFlavor[] flavors = service.getSupportedDocFlavors();
// Create the print job
DocPrintJob job = service.createPrintJob();
Doc doc = new SimpleDoc(data, flavor, null);
// Print it
job.print(doc, null);  

Murali , The above code may gives you some idea to print pdf , but we
have to know how to convert  PDF file to PCL using FOP.
   
   









-- 
View this message in context: 
http://www.nabble.com/Printing-issue-tp15082765p15097273.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Printing issue

2008-01-25 Thread Steve Quirk


It's possible to generate output for the printer with FOP, but it sounds 
like you really have PDF and just want to get that to the printer.  Right?


Look at CUPS - a quick google on cups+print+pdf will get you nearly all 
you need.


In general, getting something to print is 90% a sysadmin issue involving 
obscure interactions between the host OS and the printer, so you won't 
find any complete recipe; you'll have to experiment.


Steve

On Fri, 25 Jan 2008, [EMAIL PROTECTED] wrote:


Hi I have tried with the "-print"  command of fop. It says "Content not
allowed as input file" . Even i had gone through your embeded example it
also shows that the input file should be of extension *.fo . I have
googled a lot on printing pdf. There are so many threads in the forums on
the same. None had a solution. After so much of effort in googling then I
just came to try with fop as it generates pdf. But I think this does not
do what I want. So just thinking what could be done.

There are some command line pdf printing tools available commercially. And
also some java api. But I dont find any open source or some sort of free
tool for this.

I am specifically looking for some tool which does not require any user
intervention. It should not show any popup or dialouge boxes. It should
happen silently in the background.

Thanks And Regards,
Muralidhar Yaragalla.



Extranet
[EMAIL PROTECTED]
01/25/2008 04:27 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users
cc

Subject
Re: Printing issue






Have you tried the -print option just to see if that would be an option
for you? The experiment only takes you two minutes but might save you a
lot of trouble.

Options for printing PDF are:
- remote-control Adobe Acrobat using COM on Windows.
- GhostScript can print PDFs. I'm not sure what the automation grade
would be.
- There are various PDF tools on the internet that might help you here.
GIYF.
- Some (more expensive) printers support printing PDF directly.

On 25.01.2008 11:48:34 Muralidhar_YARAGALLA wrote:

Ya I think we cannot print the pdf documents with fop. It is only

possible

if you are generating pdf using fop. It takes the input file (which

cannot

be pdf) and renders that into various paginated output file but the

input

file will be processed and will be sent to the printer not the generated



output.

If I am wrong please correct me. If there is any way that i can print
already existing pdf kindly tell me.

Thanks And Regards,
Muralidhar Yaragalla.



Extranet
[EMAIL PROTECTED]
01/25/2008 02:06 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users
cc

Subject
Re: Printing issue






FOP has PDF generation capabilities but FOP cannot print PDF files (you
need a different tool for that). However, if it's only about printing
the generated document (I say document here, not PDF, because PDF is
just one possible output format of FOP), you can also use the
"PrintRenderer" which doesn't generate a PDF but uses Java2D/AWT to
print the document using Java's printing capabilities.

On the FOP command-line, this is the "-print" parameter. For embedded
use, have a look at:


http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2OldStylePrint.java?view=markup




Note to self and fop-devs: Since we're now on Java 1.4 we can/should
eventually switch over to using JPS.

On 25.01.2008 08:54:40 Muralidhar_YARAGALLA wrote:

Hi I know with fop we can generate PDF documents but can we print them



programatically without user intervention.  I need to fetch the pdf

files

from a folder and i have to send them for printing. no pop up and no

user

intervention should be there. It should happen silently in the

background.

Can I do this fop.

Thanks And Regards,
Muralidhar Yaragalla.




Jeremias Maerki




Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Printing issue

2008-01-25 Thread Abel Braaksma

[EMAIL PROTECTED] wrote:


There are some command line pdf printing tools available commercially. 
And also some java api. But I dont find any open source or some sort 
of free tool for this.


I am specifically looking for some tool which does not require any 
user intervention. It should not show any popup or dialouge boxes. It 
should happen silently in the background.




If you are on Windows, you can try this tool: 
http://www.geocities.com/dosprint. It is not free, but for $40 it won't 
make you go bankrupt, I hope ;)


HTH,
Cheers,
-- Abel Braaksma

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Printing issue

2008-01-25 Thread Jeremias Maerki
On 25.01.2008 12:19:44 Muralidhar_YARAGALLA wrote:
> Hi I have tried with the "-print"  command of fop. It says "Content not 
> allowed as input file" . Even i had gone through your embeded example it 
> also shows that the input file should be of extension *.fo .

That's right. I didn't mean something like "fop mydoc.pdf -print" (that
doesn't work), I meant "fop -fo mydoc.fo -print". That means you
wouldn't generate a PDF at all this way. You may not need a PDF at all.

> I have 
> googled a lot on printing pdf. There are so many threads in the forums on 
> the same. None had a solution. After so much of effort in googling then I 
> just came to try with fop as it generates pdf. But I think this does not 
> do what I want. So just thinking what could be done. 
> 
> There are some command line pdf printing tools available commercially. And 
> also some java api. But I dont find any open source or some sort of free 
> tool for this. 

GhostScript is open source (GPL) which, depending on the legal
requirements, may work for you. Otherwise, there are indeed no usable
PDF interpreters in the open source domain, yet.

> I am specifically looking for some tool which does not require any user 
> intervention. It should not show any popup or dialouge boxes. It should 
> happen silently in the background. 
> 
> Thanks And Regards,
> Muralidhar Yaragalla.
> 
> 
> 
> Extranet
> [EMAIL PROTECTED]
> 01/25/2008 04:27 PM
> Please respond to
> fop-users@xmlgraphics.apache.org
> 
> 
> To
> fop-users
> cc
> 
> Subject
> Re: Printing issue
> 
> 
> 
> 
> 
> 
> Have you tried the -print option just to see if that would be an option
> for you? The experiment only takes you two minutes but might save you a
> lot of trouble.
> 
> Options for printing PDF are:
> - remote-control Adobe Acrobat using COM on Windows.
> - GhostScript can print PDFs. I'm not sure what the automation grade
> would be.
> - There are various PDF tools on the internet that might help you here.
> GIYF.
> - Some (more expensive) printers support printing PDF directly.
> 
> On 25.01.2008 11:48:34 Muralidhar_YARAGALLA wrote:
> > Ya I think we cannot print the pdf documents with fop. It is only 
> possible 
> > if you are generating pdf using fop. It takes the input file (which 
> cannot 
> > be pdf) and renders that into various paginated output file but the 
> input 
> > file will be processed and will be sent to the printer not the generated 
> 
> > output.
> > 
> > If I am wrong please correct me. If there is any way that i can print 
> > already existing pdf kindly tell me.
> > 
> > Thanks And Regards,
> > Muralidhar Yaragalla.
> > 
> > 
> > 
> > Extranet
> > [EMAIL PROTECTED]
> > 01/25/2008 02:06 PM
> > Please respond to
> > fop-users@xmlgraphics.apache.org
> > 
> > 
> > To
> > fop-users
> > cc
> > 
> > Subject
> > Re: Printing issue
> > 
> > 
> > 
> > 
> > 
> > 
> > FOP has PDF generation capabilities but FOP cannot print PDF files (you
> > need a different tool for that). However, if it's only about printing
> > the generated document (I say document here, not PDF, because PDF is
> > just one possible output format of FOP), you can also use the
> > "PrintRenderer" which doesn't generate a PDF but uses Java2D/AWT to
> > print the document using Java's printing capabilities.
> > 
> > On the FOP command-line, this is the "-print" parameter. For embedded
> > use, have a look at:
> > 
> http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2OldStylePrint.java?view=markup
> 
> > 
> > 
> > Note to self and fop-devs: Since we're now on Java 1.4 we can/should
> > eventually switch over to using JPS.
> > 
> > On 25.01.2008 08:54:40 Muralidhar_YARAGALLA wrote:
> > > Hi I know with fop we can generate PDF documents but can we print them 
> 
> > > programatically without user intervention.  I need to fetch the pdf 
> > files 
> > > from a folder and i have to send them for printing. no pop up and no 
> > user 
> > > intervention should be there. It should happen silently in the 
> > background. 
> > > Can I do this fop.
> > > 
> > > Thanks And Regards,
> > > Muralidhar Yaragalla.
> > 
> > 
> > 
> > Jeremias Maerki
> > 
> 
> 
> Jeremias Maerki



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Printing issue

2008-01-25 Thread Muralidhar_YARAGALLA
Hi I have tried with the "-print"  command of fop. It says "Content not 
allowed as input file" . Even i had gone through your embeded example it 
also shows that the input file should be of extension *.fo . I have 
googled a lot on printing pdf. There are so many threads in the forums on 
the same. None had a solution. After so much of effort in googling then I 
just came to try with fop as it generates pdf. But I think this does not 
do what I want. So just thinking what could be done. 

There are some command line pdf printing tools available commercially. And 
also some java api. But I dont find any open source or some sort of free 
tool for this. 

I am specifically looking for some tool which does not require any user 
intervention. It should not show any popup or dialouge boxes. It should 
happen silently in the background. 

Thanks And Regards,
Muralidhar Yaragalla.



Extranet
[EMAIL PROTECTED]
01/25/2008 04:27 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users
cc

Subject
Re: Printing issue






Have you tried the -print option just to see if that would be an option
for you? The experiment only takes you two minutes but might save you a
lot of trouble.

Options for printing PDF are:
- remote-control Adobe Acrobat using COM on Windows.
- GhostScript can print PDFs. I'm not sure what the automation grade
would be.
- There are various PDF tools on the internet that might help you here.
GIYF.
- Some (more expensive) printers support printing PDF directly.

On 25.01.2008 11:48:34 Muralidhar_YARAGALLA wrote:
> Ya I think we cannot print the pdf documents with fop. It is only 
possible 
> if you are generating pdf using fop. It takes the input file (which 
cannot 
> be pdf) and renders that into various paginated output file but the 
input 
> file will be processed and will be sent to the printer not the generated 

> output.
> 
> If I am wrong please correct me. If there is any way that i can print 
> already existing pdf kindly tell me.
> 
> Thanks And Regards,
> Muralidhar Yaragalla.
> 
> 
> 
> Extranet
> [EMAIL PROTECTED]
> 01/25/2008 02:06 PM
> Please respond to
> fop-users@xmlgraphics.apache.org
> 
> 
> To
> fop-users
> cc
> 
> Subject
> Re: Printing issue
> 
> 
> 
> 
> 
> 
> FOP has PDF generation capabilities but FOP cannot print PDF files (you
> need a different tool for that). However, if it's only about printing
> the generated document (I say document here, not PDF, because PDF is
> just one possible output format of FOP), you can also use the
> "PrintRenderer" which doesn't generate a PDF but uses Java2D/AWT to
> print the document using Java's printing capabilities.
> 
> On the FOP command-line, this is the "-print" parameter. For embedded
> use, have a look at:
> 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2OldStylePrint.java?view=markup

> 
> 
> Note to self and fop-devs: Since we're now on Java 1.4 we can/should
> eventually switch over to using JPS.
> 
> On 25.01.2008 08:54:40 Muralidhar_YARAGALLA wrote:
> > Hi I know with fop we can generate PDF documents but can we print them 

> > programatically without user intervention.  I need to fetch the pdf 
> files 
> > from a folder and i have to send them for printing. no pop up and no 
> user 
> > intervention should be there. It should happen silently in the 
> background. 
> > Can I do this fop.
> > 
> > Thanks And Regards,
> > Muralidhar Yaragalla.
> 
> 
> 
> Jeremias Maerki
> 


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 
Do not print this message unless it is necessary,
consider the environment.

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.


Re: Printing issue

2008-01-25 Thread Jeremias Maerki
Have you tried the -print option just to see if that would be an option
for you? The experiment only takes you two minutes but might save you a
lot of trouble.

Options for printing PDF are:
- remote-control Adobe Acrobat using COM on Windows.
- GhostScript can print PDFs. I'm not sure what the automation grade
would be.
- There are various PDF tools on the internet that might help you here.
GIYF.
- Some (more expensive) printers support printing PDF directly.

On 25.01.2008 11:48:34 Muralidhar_YARAGALLA wrote:
> Ya I think we cannot print the pdf documents with fop. It is only possible 
> if you are generating pdf using fop. It takes the input file (which cannot 
> be pdf) and renders that into various paginated output file but the input 
> file will be processed and will be sent to the printer not the generated 
> output.
> 
> If I am wrong please correct me. If there is any way that i can print 
> already existing pdf kindly tell me.
> 
> Thanks And Regards,
> Muralidhar Yaragalla.
> 
> 
> 
> Extranet
> [EMAIL PROTECTED]
> 01/25/2008 02:06 PM
> Please respond to
> fop-users@xmlgraphics.apache.org
> 
> 
> To
> fop-users
> cc
> 
> Subject
> Re: Printing issue
> 
> 
> 
> 
> 
> 
> FOP has PDF generation capabilities but FOP cannot print PDF files (you
> need a different tool for that). However, if it's only about printing
> the generated document (I say document here, not PDF, because PDF is
> just one possible output format of FOP), you can also use the
> "PrintRenderer" which doesn't generate a PDF but uses Java2D/AWT to
> print the document using Java's printing capabilities.
> 
> On the FOP command-line, this is the "-print" parameter. For embedded
> use, have a look at:
> http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2OldStylePrint.java?view=markup
> 
> 
> Note to self and fop-devs: Since we're now on Java 1.4 we can/should
> eventually switch over to using JPS.
> 
> On 25.01.2008 08:54:40 Muralidhar_YARAGALLA wrote:
> > Hi I know with fop we can generate PDF documents but can we print them 
> > programatically without user intervention.  I need to fetch the pdf 
> files 
> > from a folder and i have to send them for printing. no pop up and no 
> user 
> > intervention should be there. It should happen silently in the 
> background. 
> > Can I do this fop.
> > 
> > Thanks And Regards,
> > Muralidhar Yaragalla.
> 
> 
> 
> Jeremias Maerki
> 


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Printing issue

2008-01-25 Thread Muralidhar_YARAGALLA
Ya I think we cannot print the pdf documents with fop. It is only possible 
if you are generating pdf using fop. It takes the input file (which cannot 
be pdf) and renders that into various paginated output file but the input 
file will be processed and will be sent to the printer not the generated 
output.

If I am wrong please correct me. If there is any way that i can print 
already existing pdf kindly tell me.

Thanks And Regards,
Muralidhar Yaragalla.



Extranet
[EMAIL PROTECTED]
01/25/2008 02:06 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users
cc

Subject
Re: Printing issue






FOP has PDF generation capabilities but FOP cannot print PDF files (you
need a different tool for that). However, if it's only about printing
the generated document (I say document here, not PDF, because PDF is
just one possible output format of FOP), you can also use the
"PrintRenderer" which doesn't generate a PDF but uses Java2D/AWT to
print the document using Java's printing capabilities.

On the FOP command-line, this is the "-print" parameter. For embedded
use, have a look at:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2OldStylePrint.java?view=markup


Note to self and fop-devs: Since we're now on Java 1.4 we can/should
eventually switch over to using JPS.

On 25.01.2008 08:54:40 Muralidhar_YARAGALLA wrote:
> Hi I know with fop we can generate PDF documents but can we print them 
> programatically without user intervention.  I need to fetch the pdf 
files 
> from a folder and i have to send them for printing. no pop up and no 
user 
> intervention should be there. It should happen silently in the 
background. 
> Can I do this fop.
> 
> Thanks And Regards,
> Muralidhar Yaragalla.



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 
Do not print this message unless it is necessary,
consider the environment.

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.


Re: Printing issue

2008-01-25 Thread Muralidhar_YARAGALLA
I completly agree with the following.

"FOP has PDF generation capabilities but FOP cannot print PDF files (you
need a different tool for that). However, if it's only about printing
the generated document (I say document here, not PDF, because PDF is
just one possible output format of FOP)" 

But I also have to print the document after generating. For Example I had 
generated a PDF paged document and I also need to print it without user 
intervention. I am looking at the example given by you. will get back if 
any problem.

Thanks And Regards,
Muralidhar Yaragalla.



Extranet
[EMAIL PROTECTED]
01/25/2008 02:06 PM
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users
cc

Subject
Re: Printing issue






FOP has PDF generation capabilities but FOP cannot print PDF files (you
need a different tool for that). However, if it's only about printing
the generated document (I say document here, not PDF, because PDF is
just one possible output format of FOP), you can also use the
"PrintRenderer" which doesn't generate a PDF but uses Java2D/AWT to
print the document using Java's printing capabilities.

On the FOP command-line, this is the "-print" parameter. For embedded
use, have a look at:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2OldStylePrint.java?view=markup


Note to self and fop-devs: Since we're now on Java 1.4 we can/should
eventually switch over to using JPS.

On 25.01.2008 08:54:40 Muralidhar_YARAGALLA wrote:
> Hi I know with fop we can generate PDF documents but can we print them 
> programatically without user intervention.  I need to fetch the pdf 
files 
> from a folder and i have to send them for printing. no pop up and no 
user 
> intervention should be there. It should happen silently in the 
background. 
> Can I do this fop.
> 
> Thanks And Regards,
> Muralidhar Yaragalla.



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 
Do not print this message unless it is necessary,
consider the environment.

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.


Re: Printing issue

2008-01-25 Thread Jeremias Maerki
FOP has PDF generation capabilities but FOP cannot print PDF files (you
need a different tool for that). However, if it's only about printing
the generated document (I say document here, not PDF, because PDF is
just one possible output format of FOP), you can also use the
"PrintRenderer" which doesn't generate a PDF but uses Java2D/AWT to
print the document using Java's printing capabilities.

On the FOP command-line, this is the "-print" parameter. For embedded
use, have a look at:
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleFO2OldStylePrint.java?view=markup

Note to self and fop-devs: Since we're now on Java 1.4 we can/should
eventually switch over to using JPS.

On 25.01.2008 08:54:40 Muralidhar_YARAGALLA wrote:
> Hi I know with fop we can generate PDF documents but can we print them 
> programatically without user intervention.  I need to fetch the pdf files 
> from a folder and i have to send them for printing. no pop up and no user 
> intervention should be there. It should happen silently in the background. 
> Can I do this fop.
> 
> Thanks And Regards,
> Muralidhar Yaragalla.



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]