reteppdf-general Mailing List for retepPDF Java PDF Generator
Status: Beta
Brought to you by:
petermount
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
(6) |
Mar
(3) |
Apr
(9) |
May
(14) |
Jun
(5) |
Jul
(5) |
Aug
(11) |
Sep
(10) |
Oct
(1) |
Nov
(3) |
Dec
(4) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(8) |
Feb
(2) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Mark B. <ma...@ea...> - 2001-03-04 00:35:53
|
> From: "Richard H. White" <wh...@ho...> > Date: Fri, 09 Feb 2001 09:22:06 -0500 > > After using drawString to output some text, I calculate the new > x-coordinate using the stringWidth method of FontMetrics on the text > just outputted. This often proves to be inaccurate, depending on the > contents of the string passed to the method. > > Has anyone else had this problem? > There are differences between what java.awt.FontMetrics and the PDF fonts. Check the mailing list archives--I know Peter went into some detail on this matter at some point. In a September, 2000 thread he suggested that we will need to supply our own tables for the PDF font metrics to get it to work properly. > Is there another way to find the current output x-coordinate? > > > _______________________________________________ > Reteppdf-general mailing list > Ret...@li... > http://lists.sourceforge.net/lists/listinfo/reteppdf-general > |
|
From: Kelly D. <kd...@in...> - 2001-03-02 17:12:47
|
I was doing some reading on the adobe website about Acrobat. Apparently it lets you set security options on pdf files, such that individuals cannot modify or print, copy text and images, and password access. Is there plan on adding methods to set these options? -- Kelly Davis kd...@in... Systems Developer Interadnet |
|
From: Richard H. W. <wh...@ho...> - 2001-02-09 14:21:47
|
After using drawString to output some text, I calculate the new x-coordinate using the stringWidth method of FontMetrics on the text just outputted. This often proves to be inaccurate, depending on the contents of the string passed to the method. Has anyone else had this problem? Is there another way to find the current output x-coordinate? |
|
From: Senthil_Sundaramoorthy <Sen...@AG...> - 2001-02-01 00:17:38
|
Hi, I downloaded the reteppdf jar file from the site. But I don't know how to use it. Can anybody help me out.. It's very urgent.... Thanks in Advance Senthil Kumar |
|
From: <ra...@in...> - 2001-01-19 12:26:21
|
Can reteppdf be used for on-the-fly PDF documents generation on the client side through JSP with Enterprise Java Beans? --------------------------------------------------- Get free personalized email at http://www.iname.com |
|
From: Richard H. W. <wh...@ho...> - 2001-01-11 16:08:49
|
We are printing reports from a database that contains slanted apostrophes in text fields. When reteppdf generates the report, these apostrophes are converted to question marks. Does anyone know of a way to extend the fonts in reteppdf to recognize and print the slanted apostrophes? Thanks |
|
From: Al K. <Al...@di...> - 2001-01-09 15:45:38
|
The content length field of the http header is probably not being set. I don't know how rettep handles that but this is what causes the blank = page to appear in IE. Al Kirkus Network Specialist=20 School District 102 LaGrange Il >>> "Richard H. White" <wh...@ho...> - 1/9/01 8:38 AM >>> I have written several servlets using reteppdf that work fine using Netscape. However, when using IE (tried 5.0 & 5.5), the acrobat reader plugin returns a blank page. Does anyone have an idea what might cause such a problem? _______________________________________________ Reteppdf-general mailing list Ret...@li... http://lists.sourceforge.net/mailman/listinfo/reteppdf-general |
|
From: Alexander J. <ale...@cr...> - 2001-01-09 14:58:40
|
Hi,
from a mail posted to the iText-mailing-list:
===================================================
I have found a solution to the blank pdf coming back from my servlets in
Internet Explorer.
There are two things that I needed to do.
1. You need to set the content length as in the following code.
res.setContentType("application/pdf");
ByteArrayOutputStream ba = new ByteArrayOutputStream();
generate_pdf(ba);
res.setContentLength(ba.size());
ServletOutputStream out = res.getOutputStream();
ba.writeTo(out);
out.flush();
2. When you are calling the servlet from the submit button on the HTML Form
you must use the GET method for the action and not the POST method. as in
the following code
In the HTML
<FORM name=MyForm METHOD=GET action="/servlet/myservlet.class">
In the servlet
public void doGet(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{
doPost(request, response);
}
public void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{
}
I found this by just running the servlet from the address bar in Internet
Explorer. This works for IE5.0 , IE5.5sp1, Adobe Acrobat 3.0 , and 4 as
tested.
Steve Langille
EDS Canada Inc.
Oshawa Truck Assembly Centre
1615 Dundas Street E.
Whitby, Ontario, L1N 7S6
* phone: +01-905-644-2391 (8-274)
* mailto:ste...@ed...
pager: *97 -2391
===================================================
hope this helps
Alexander Jesse
CREDIT SUISSE FINANCIAL SERVICES
Technologies and Services
Java Support Team
E-Mail: mailto:ale...@cr...
> -----Original Message-----
> From: wh...@ho... [mailto:wh...@ho...]
> Sent: Tuesday, January 09, 2001 3:39 PM
> To: ret...@li...
> Subject: [Reteppdf-general] Getting blank page using IE
>
>
> I have written several servlets using reteppdf that work fine using
> Netscape. However, when using IE (tried 5.0 & 5.5), the acrobat reader
> plugin returns a blank page.
>
> Does anyone have an idea what might cause such a problem?
>
> _______________________________________________
> Reteppdf-general mailing list
> Ret...@li...
> http://lists.sourceforge.net/mailman/listinfo/reteppdf-general
>
|
|
From: Richard H. W. <wh...@ho...> - 2001-01-09 14:41:34
|
I have written several servlets using reteppdf that work fine using Netscape. However, when using IE (tried 5.0 & 5.5), the acrobat reader plugin returns a blank page. Does anyone have an idea what might cause such a problem? |
|
From: Carlos R. <CRa...@ts...> - 2001-01-04 01:35:41
|
Please if somebody have a PDFImage.zip (including modification for work = with Image) send me. In http://lists.sourceforge.net/archives//reteppdf-general/2000-September/0= 0005 5.html send this archive but it's in MIME format. Thanks for all Carlos Ram=EDrez Santiv=E1=F1ez cra...@ts... |
|
From: Mark B. <ma...@ea...> - 2001-01-04 01:19:25
|
Carlos Ramirez wrote: >=20 > Hi >=20 > How to include image (gif, jpg ...) to the PDF using retepPDF class ??? > Exist examples for use this class with images ??? >=20 > Thanks in advance. >=20 > Carlos Ram=EDrez Santiv=E1=F1ez > cra...@ts... >=20 > _______________________________________________ > Reteppdf-general mailing list > Ret...@li... > http://lists.sourceforge.net/mailman/listinfo/reteppdf-general Check the archives for this mailing list. I believe someone submitted some code for doing jpg's. |
|
From: Carlos R. <CRa...@ts...> - 2001-01-03 20:32:15
|
Hi How to include image (gif, jpg ...) to the PDF using retepPDF class ??? Exist examples for use this class with images ??? Thanks in advance. Carlos Ram=EDrez Santiv=E1=F1ez cra...@ts... |
|
From: Arbeitsplatz P. H. 4 VASL/F. <Arb...@vo...> - 2000-12-12 09:07:20
|
Is it possible to concat existing PDF documents with the retep pdf library, will this ever be possible? thanks, Christoph Panwinkler |
|
From: Peter M. <pet...@ma...> - 2000-12-11 15:54:40
|
It's in the middle of being moved from Demon to Hub. It should be up and running from tomorrow. Peter -- Peter Mount Enterprise Support Officer, Maidstone Borough Council Email: pet...@ma... WWW: http://www.maidstone.gov.uk All views expressed within this email are not the views of Maidstone Borough Council > -----Original Message----- > From: Arbeitsplatz Projekt HQDS 4 VASL/FAE > [mailto:Arb...@vo...] > Sent: Monday, December 11, 2000 3:40 PM > To: 'ret...@li...' > Subject: [Reteppdf-general] homepage missing? > > > where is the homepage of reteppdf, I cannot get there any more > Http://www.retep.org.uk/pdf/ does not work anymore > > _______________________________________________ > Reteppdf-general mailing list > Ret...@li... > http://lists.sourceforge.net/mailman/listinfo/reteppdf-general > |
|
From: Arbeitsplatz P. H. 4 VASL/F. <Arb...@vo...> - 2000-12-11 15:41:15
|
where is the homepage of reteppdf, I cannot get there any more Http://www.retep.org.uk/pdf/ does not work anymore |
|
From: <ab...@ab...> - 2000-12-10 05:31:26
|
Your site "RetepPDF Java PDF Generator at Http://www.retep.org.uk/pdf/ " has been indexed at AboutWebmasters.com, the biggest interactive webmasters portal and search engine (http://www.aboutwebmasters.com). Your site has resources that may be of good use to the e-commerce community in your specific industry. Your being in this highly focused search engine/portal frequented by people in the web building, marketing and e-commerce industry should result in a good flow of traffic to your site and a lot of new business for you. Important: In this email (Approx. reading time: 3 min.): ================== 1. Editing and adding to your listings 2. Getting your site rated higher 3. Free & trial online marketing and research software downloads 4. Affiliate program (run through LinkShare) 5. Articles and content for your site (free) 6. Adding AboutWebmasters.com search boxes to your site 7. Thank you! How to Contact Us. Editing and adding to your listings ========================== You may edit the way your site has been listed, add more sites, or add your site to other relevant categories. To do so, please visit: http://www.aboutwebmasters.com Click on the Manage Your Listings link at the bottom. If this is your first time managing your account, you will need to create an account free by clicking on the Create One Now link below the login form. When asked, enter the email address you received this email at. The portal will send you all the sites that are listed for you under that email address, plus instructions on how to make changes. To add a new URL just go to the appropriate category and click on the Add URL link at the bottom. Getting your site rated higher ======================= Have your site voted on by your visitors. Their votes boost your rankings in category listings and search results, which means more traffic for you. To be considered one of the top listings in its category, simply place the following HTML code on your home page (and any other pages you wish on your site) to begin the voting process (it will open the rating form in a new window): <TABLE BORDER=0><TR><TD> <A HREF="http://www.aboutwebmasters.com/cgi-bin/search/rateit.cgi?ID= [ID]" TARGET="_blank"> <IMG SRC=" http://www.aboutwebmasters.com/search/images/aboutwebmastersvote.gif " BORDER="0" ALT="Rate this site on AboutWebmasters.com!"></A></TD> </TR> <TR><TD>Rate this site on AboutWebmasters.com!</TD></TR></TABLE> Make sure you replace the [ID] part in that HTML with your site ID (to get your site ID go to Manage URLs on the portal and click on the option to have your URLs emailed to you). For example, if your site ID is 7686 then that bit of HTML would change to http://www.aboutwebmasters.com/cgi-bin/search/rateit.cgi?ID=7686 Free & trial online marketing and research software downloads ================================ We'd like to invite you to download the following 2 products that should prove very useful to your site and save you time in your tasks: 1. WebmasterAnswers (free) - A small but powerful search tool that is always with you, waiting until you need it. At the click of a button you can find CGI scripts, files, software, articles, resources, books, hardware, quick answers to all your web building and marketing questions from hundreds of the best resources, and much more. A great time-saver and knowledge base. And it is absolutely free. Get it at: http://www.aboutwebmasters.com/webansrs.exe 2. PositionWeaver PRO (free trial) - A ZDNET Editor's Choice 4 Star award winner, this comprehensive easy-to-use package gets you more targeted traffic to your site by getting your site ranked at the top of search engine results. Have your site in a top-ten ranking in the major search engines when users search using keywords related to your business. Get it at: http://www.aboutwebmasters.com/download.shtml If you would like to see some testimonials from some PositionWeaver users, see: http://www.aboutwebmasters.com/search_engine_positioning_testimonials.shtml Affiliate program (powered by LinkShare) ================================ Join the PositionWeaver Affiliate Network free, powered by LinkShare, and earn up to 25% on sales resulting from your links to the PositionWeaver product. For details and to sign up, see: http://www.aboutwebmasters.com/agents/index.shtml Articles and content for your site (free) ============================== Need quality articles for your web site or newsletter? We have a bunch of them for you for your free use - publish them anywhere you like. Download them at: http://www.aboutwebmasters.com/agents/webmasters/articles.zip If you would like us to send you any new ones as they become available, please reply to this email with the phrase "SUBSCRIBE TO ARTICLES" in the subject (make sure it is in the subject). Adding AboutWebmasters.com search boxes to your site ============================== Increase your web site's value by adding a free AboutWebmasters.com search boxes to your site. To do so, collect the HTML code at: http://www.aboutwebmasters.com/aboutportalsearchbox.shtml Thank you! How to Contact Us. ========= Thank you for your time. We really appreciate it and hope that this email brought some good news to you that will prove profitable to your online activities. Please feel free to forward this email to your friends and associates in the web building, marketing and e-commerce industry, letting them know about this new and useful portal. This was a one-time mailing to let you know that your site has been indexed at the biggest interactive webmasters portal. However, if you wish to never receive any more emails from us, please reply to this email with the word DELETE in the subject. If you would like to contact us for any other reason, please do so at: http://www.aboutwebmasters.com/feedback.shtml (do not reply to this email unless you wish to be deleted or subscribe to the articles release list as detailed above). This email address is automated, not manned. Once again, thank you and have a nice day! Regards, AboutWebmasters.com http://www.aboutwebmasters.com |
|
From: Peter M. <pet...@ma...> - 2000-11-02 13:50:27
|
I'll have to check, but I think PDF is around the 72 point mark, but I do have the feeling it is slightly out. Being based on postscript, it should follow 72 though. Peter -- Peter Mount Enterprise Support Officer, Maidstone Borough Council Email: pet...@ma... WWW: http://www.maidstone.gov.uk All views expressed within this email are not the views of Maidstone Borough Council -----Original Message----- From: Mark Bucciarelli [mailto:ma...@ea...] Sent: Thursday, November 02, 2000 1:36 PM To: ret...@li... Subject: [Reteppdf-general] 72 Units Per Inch? Greetings all! Ran into a pretty basic question ... how many units/per inch should I use to locate text on a report? I thought it was 72. For example, the PDFPage defines MEDIA_letter to be a 612 by 792 rectangle, which is 8.5 * 72 by 11 * 72. However, when I generate a PDF file with source below, print it and measure the distance between the lines, I get a horizontal units per inch of 76.5957 and a vertical dots per inch of 76.7772. Any ideas? ----------------- start of include -------------------- import java.io.FileOutputStream; import java.io.IOException; import java.awt.Graphics; import uk.org.retep.pdf.*; public class Calibrate extends Object { public Calibrate() { } public static void main (String[] args) throws IOException { FileOutputStream fos = new FileOutputStream("calibrate.pdf"); PDFJob job = uk.org.retep.pdf.PDF.getPDFJob(fos, "Calibration"); Graphics g = job.getGraphics(PDFPage.MEDIA_letter, PDFPage.PORTRAIT); for (int y=72; y < 72*11; y+=72) g.drawLine(72, y, 200, y); for (int x=72; x < 72*9; x+=72) g.drawLine(x,72, x, 200); g.drawString("The distance between the left most and right most bars", 252, 288); g.drawString(" is 6.58\" on my Epson Stylus 500.", 252, 300); g.drawString("The distance between the top most and bottom most bars", 252, 360); g.drawString(" is 8.44\" on my Epson Stylus 500.", 252, 372); g.drawString("There are 72 units between each bar, giving ", 252, 432); g.drawString("76.5957 horizontal dots/in and 76.7772 vertical", 252, 444); g.drawString("dots per inch.", 252, 456); g.dispose(); job.end(); fos.close(); } } // Calibrate ----------------- end of include -------------------- _______________________________________________ Reteppdf-general mailing list Ret...@li... http://lists.sourceforge.net/mailman/listinfo/reteppdf-general |
|
From: Mark B. <ma...@ea...> - 2000-11-02 13:47:52
|
My printer was set to "Fit to Page!" Doh! |
|
From: Mark B. <ma...@ea...> - 2000-11-02 13:40:16
|
Greetings all!
Ran into a pretty basic question ... how many units/per inch should I
use to locate text on a report?
I thought it was 72. For example, the PDFPage defines MEDIA_letter to
be a 612 by 792 rectangle, which is 8.5 * 72 by 11 * 72. However,
when I generate a PDF file with source below, print it and measure the
distance between the lines, I get a horizontal units per inch of
76.5957 and a vertical dots per inch of 76.7772. Any ideas?
----------------- start of include --------------------
import java.io.FileOutputStream;
import java.io.IOException;
import java.awt.Graphics;
import uk.org.retep.pdf.*;
public class Calibrate extends Object {
public Calibrate() { }
public static void main (String[] args)
throws IOException
{
FileOutputStream fos = new FileOutputStream("calibrate.pdf");
PDFJob job = uk.org.retep.pdf.PDF.getPDFJob(fos, "Calibration");
Graphics g = job.getGraphics(PDFPage.MEDIA_letter, PDFPage.PORTRAIT);
for (int y=72; y < 72*11; y+=72)
g.drawLine(72, y, 200, y);
for (int x=72; x < 72*9; x+=72)
g.drawLine(x,72, x, 200);
g.drawString("The distance between the left most and right most bars",
252, 288);
g.drawString(" is 6.58\" on my Epson Stylus 500.", 252, 300);
g.drawString("The distance between the top most and bottom most bars",
252, 360);
g.drawString(" is 8.44\" on my Epson Stylus 500.", 252, 372);
g.drawString("There are 72 units between each bar, giving ", 252, 432);
g.drawString("76.5957 horizontal dots/in and 76.7772 vertical", 252,
444);
g.drawString("dots per inch.", 252, 456);
g.dispose();
job.end();
fos.close();
}
} // Calibrate
----------------- end of include --------------------
|
|
From: <pd...@gu...> - 2000-10-18 09:07:32
|
Dear all, I would like to ask if I can write Chinese or Big5 code into the pdf using the API available ( or other language not English ). If yes, how? Besides, one off-topic question, when I use Adobe distiller to print pdf, I can't find the text pattern into the document. I think there is an encryption of the text entered. How can I disable it? Many thanks, Boris |
|
From: Peter M. <pet...@ma...> - 2000-09-12 07:05:32
|
There are differences between what java.awt.FontMetrics think and what PDF's fonts actually use. The test code highlighted this from almost day one. The theory is sound, but I think that at somepoint (for FontMetrics) we need to supply our own tables to match the PDF fonts wo that it isn't that approximate. Peter -- Peter Mount Enterprise Support Officer, Maidstone Borough Council Email: pet...@ma... WWW: http://www.maidstone.gov.uk All views expressed within this email are not the views of Maidstone Borough Council -----Original Message----- From: Arbeitsplatz Projekt HQDS 4 VASL/FAE [mailto:Arb...@vo...] Sent: Tuesday, September 12, 2000 7:45 AM To: 'ret...@li...' Subject: AW: [Reteppdf-general] WORD WRAP FontMetrics is not exact at all, it is just some kind of approximation, so you have to reserve some buffer space chris > ---------- > Von: Peter Mount[SMTP:pe...@ma...] > Gesendet: Dienstag, 12. September 2000 02:31 > An: Jesse Guardiani > Cc: ret...@li... > Betreff: Re: [Reteppdf-general] WORD WRAP > > I'd think using FontMetrics for each word, then you'd know the maximum > number of words that would fit in a specified width, and wrap at that > point. > > You could extend this to include full-justification by increasing the > space width accordingly. > > Peter > > On Mon, 11 Sep 2000, Jesse Guardiani wrote: > > > What would be the best method to incorporate a word wrap > > programmatically? I need to specify regions in which text wraps. > > > > Jesse Guardiani > > _______________________________________________ > > Reteppdf-general mailing list > > Ret...@li... > > http://lists.sourceforge.net/mailman/listinfo/reteppdf-general > > > > _______________________________________________ > Reteppdf-general mailing list > Ret...@li... > http://lists.sourceforge.net/mailman/listinfo/reteppdf-general > _______________________________________________ Reteppdf-general mailing list Ret...@li... http://lists.sourceforge.net/mailman/listinfo/reteppdf-general |
|
From: Arbeitsplatz P. H. 4 VASL/F. <Arb...@vo...> - 2000-09-12 06:45:37
|
FontMetrics is not exact at all, it is just some kind of approximation, so you have to reserve some buffer space chris > ---------- > Von: Peter Mount[SMTP:pe...@ma...] > Gesendet: Dienstag, 12. September 2000 02:31 > An: Jesse Guardiani > Cc: ret...@li... > Betreff: Re: [Reteppdf-general] WORD WRAP > > I'd think using FontMetrics for each word, then you'd know the maximum > number of words that would fit in a specified width, and wrap at that > point. > > You could extend this to include full-justification by increasing the > space width accordingly. > > Peter > > On Mon, 11 Sep 2000, Jesse Guardiani wrote: > > > What would be the best method to incorporate a word wrap > > programmatically? I need to specify regions in which text wraps. > > > > Jesse Guardiani > > _______________________________________________ > > Reteppdf-general mailing list > > Ret...@li... > > http://lists.sourceforge.net/mailman/listinfo/reteppdf-general > > > > _______________________________________________ > Reteppdf-general mailing list > Ret...@li... > http://lists.sourceforge.net/mailman/listinfo/reteppdf-general > |
|
From: Peter M. <pe...@ma...> - 2000-09-12 05:44:45
|
I'd think using FontMetrics for each word, then you'd know the maximum number of words that would fit in a specified width, and wrap at that point. You could extend this to include full-justification by increasing the space width accordingly. Peter On Mon, 11 Sep 2000, Jesse Guardiani wrote: > What would be the best method to incorporate a word wrap > programmatically? I need to specify regions in which text wraps. > > Jesse Guardiani > _______________________________________________ > Reteppdf-general mailing list > Ret...@li... > http://lists.sourceforge.net/mailman/listinfo/reteppdf-general > |
|
From: Jesse G. <obs...@bi...> - 2000-09-11 20:57:29
|
What would be the best method to incorporate a word wrap programmatically? I need to specify regions in which text wraps. Jesse Guardiani |
|
From: Peter M. <pe...@ma...> - 2000-09-11 20:02:00
|
There's a few example .java files on http://www.retep.org.uk/pdf/ The .jar file should contain just the compiled classes. Finally I've got maidast back online, so I now have a proper internet/development system (linux beats Win98/NT/ME) so I have some updates to make, including rewriting the example (which was really a test than an example). Peter On Mon, 11 Sep 2000, Jesse Guardiani wrote: > Back in 2000-08 Pawat Siriwan wrote about experiencing problems with the > getGraphics function. I have the same problems! Unfortunately, I added a > dispose() statement in the place Peter recommended, and got the same > error. I am a C programmer. I am stumbling through Java. The cross > platform architecture is simply amazing, but I am still new to the whole > .jar file thing. I know this library includeds example code. I've seen it > referenced repeatedly, but I still can't figure out how to download > it/compile it. Does it come with the reteppdf-1.1.1-java2.jar? Or will I > have to download it separately? Is it included in one file? Or many? Any > class path statements I will have to make to get it operational? > This library is the perfect solution to my problems, but I need a little > boost in order to use it! I am running on Windows 98. I have the Java JDK > 1.2 installed. And I thoroughly appreciate any help you can give me. > > Sincerely, > Jesse Guardiani > _______________________________________________ > Reteppdf-general mailing list > Ret...@li... > http://lists.sourceforge.net/mailman/listinfo/reteppdf-general > |