PDF Generating Tool Support Forum

HOME   Login   Register    Search

  Subject: Re: initialPageNumber
   PostPosted: 28 Feb 2011, 12:56 
Hello !

Works great !!
Thank you very much for your help and the quick adding of the feature !
I'm going to get my supervisor to order the pro license as soon as possible.

Thanks again !

Kind regards
Niels Göran

  Subject: Re: initialPageNumber
   PostPosted: 27 Nov 2011, 01:37 

I come across another questions while further implementing PD4ML.
We are trying got use "pd4ml.print.dialog.popup", but again it is not available via PHP param feature.
Is there a different way to force the print window? Or do we have to implement it in the wrapper ourself? (If you could provide us with that feature as you did last time, that would be really great.).

And the second questions relates unique numbers in printed documents.
We create PDF files with tags on each page, and each tag has its unique number.
Now we want to directly print that page out instead of opening the PDF in the user window (even when the print dialog opens directly, there is no way to tell if the tags were printed or not...).
Is there any simple to do that? One suggestion we found was to write the PDFs in a specific folder on the server, and have the server check for the files and each time it found one, that one will be printed.

Thank you very much for your Help!

Kind regards
Niels Göran

  Subject: Re: initialPageNumber
   PostPosted: 28 Nov 2011, 15:55 
In theory the following command-line parameter should produce PDFs pop the print dialog automatically up:
-param pd4ml.print.dialog.popup true
Please give a try.

I am not sure if I understood your second question correctly, as "PDF tag" can mean different things.

So you would like to autoprint some sections of generated PDF documents? I do not know what you are going to use on the sever side as a print application, but if it should be "standard" Acroread, I would to take a look to the attached document. Acroread command-line parameters allow to jump to a particular section of a PDF document (marked as a named destination).

By the link you may find Acroread command line options for silent printing:

Probably by combining the named destination jump and the silent print command you'll achieve the needed functionality.

PDFOpenParameters.pdf [153.6 KiB]
Downloaded 2335 times
  Subject: Re: initialPageNumber
   PostPosted: 30 Nov 2011, 03:10 

thank you very much for your answer...
The first part of the answer solved the problem completely.
That's exactly the command I was looking for..

The second part I explained very poorly. Within the company I work for, we use certain tags to label specific parts, kind of like price tags.
These tags are supposed to be containing consecutive numbers..
Therefore we have to make sure, that each number is only printed once..
If we open the PDF file, even with the printing dialog directly opened, there still is the chance, that the file with for example the numbers 1 through 30, is printed multiple times. We are looking for a way to properly print the PDFs once and only once.
Our current approach would be to create the file and save it on the server (temporarily) and sent it to a printer selected by the user via network. After it was successfully printed, the file will be deleted and the first new number to be used will be saved in a database and used for generating the next set of "tags" with new numbers.

I think that might be the most practical solution, since using the command line in combination with a webserver will get really difficult very quickly...

If you can offer any other idea, we would be more than happy to give it a try...

Thank you for your help!

Kind regards
Niels Göran

  Subject: Re: initialPageNumber
   PostPosted: 05 Dec 2011, 23:50 
So the print jobs are going to be initiated from the server side (not from client PC)? In the case you'll anyway need to execute some print command line. I have my doubts if there is an easy way to talk from an application server to a printer (and to render/print a PDF, which is another level of complexity).

As for me a print.bat file with a singe command like
AcroRd32.exe /t %1 "\\server\printername" "Kyocera FS-1010" ""
is quite a straightforward solution to be executed from the server like that:

String cmdstart[] = { "cmd.exe", "/c", "print.bat", tempPdfLocation };

Of course, printer names/locations could be passed to the script as a parameter as well.

  Subject: Re: initialPageNumber
   PostPosted: 15 Jul 2013, 21:37 
There is a way to define initial page number within HTML?

Something similar to:
<pd4ml:page.footer initialPageNumber="3">
<div class='footerPDF'>
page $[page] of $[total]

I know that there is a way to pass it from JAVA API:
PD4PageMark footer = new PD4PageMark();
footer.setHtmlTemplate("<div class='footerPDF'>page $[page] of $[total]</div>");

Which doesn't completely satisfy our needs.

  Subject: Re: initialPageNumber
   PostPosted: 19 Jul 2013, 22:32 
With your particular footer sample there is a possibility to get a confusing footer text "page 3 of 1". So some mechanism to impact $[total] value is also needed. That was a reason we did not copy the feature from PD4PageMark to inline HTML headers/footers.

We could add the feature to <pd4ml:page.footer>, but first we need to review typical use cases and to think how to keep everything consistent there. Of course, we would appreciate your input.

[Reply]     [ 17 posts ]  Go to page Previous  1, 2

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share