Aligning Text in pdf using servlet

Hi all,
I have task to get data from database and convert it to PDF
I got the solution but my problem is to Align one(column value) portion of text to right side
How can I do This
Any suggestion will be help full
The below shown FROM should come to right side of page
Ex:
To,
The forumn Members,
Sun Forumn
I have task to get data from database and convert it to PDF
I got the solution but my problem is to Align one(column value) portion of text to right side
How can I do This
Any suggestion will be help full
From
sssss
Member of Java Forumn
Sun Forumn
Thanks
Edited by: maganti on Nov 26, 2009 1:50 AM
Edited by: maganti on Nov 26, 2009 1:53 AM

I sense.. I sense.. Come on! I summon all of the psychic and the magic of this whole forum...
Fly to me all-knowledge, gather it all through my third eye!
What about telling us the tiniest little bit about your solution?
Supposing it's iText or FO, RTFM!
Bye.

Similar Messages

  • Extract Text from pdf using C#

    Hi,
    We are Solution developer using Acrobat,as we have reuirement of extracting text from pdf using C# we have downloaded adobe sdk and installed. We have found only four exmaples in C# and those are used only for viewing pdf in windows application. Can you please guide us how to extract text from pdf using SDK in C#.
    Thanks you for your help.
    Regards
    kiranmai

    Okay so I went ahead and actually added the text extraction functionality to my own C# application, since this was a requested feature by the client anyhow, which originally we were told to bypass if it wasn't "cut and dry", but it wasn't bad so I went ahead and gave the client the text extraction that they wanted. Decided I'd post the source code here for you. This returns the text from the entire document as a string.
           private static string GetText(AcroPDDoc pdDoc)
                AcroPDPage page;
                int pages = pdDoc.GetNumPages();
                string pageText = "";
                for (int i = 0; i < pages; i++)
                    page = (AcroPDPage)pdDoc.AcquirePage(i);
                    object jso, jsNumWords, jsWord;
                    List<string> words = new List<string>();
                    try
                        jso = pdDoc.GetJSObject();
                        if (jso != null)
                            object[] args = new object[] { i };
                            jsNumWords = jso.GetType().InvokeMember("getPageNumWords", BindingFlags.InvokeMethod, null, jso, args, null);
                            int numWords = Int32.Parse(jsNumWords.ToString());
                            for (int j = 0; j <= numWords; j++)
                                object[] argsj = new object[] { i, j, false };
                                jsWord = jso.GetType().InvokeMember("getPageNthWord", BindingFlags.InvokeMethod, null, jso, argsj, null);
                                words.Add((string)jsWord);
                        foreach (string word in words)
                            pageText += word;
                    catch
                return pageText;

  • How to read line number text from PDF using plugin?

    Hi, I would like to know how to read line number text from PDF using plugin?
    Thanks in advance.

    Ok, some background reading of the PDF Reference will help you understand why this is so difficult. PDF files are not organised into lines. It is best to think of each word or character on the page as being a graphic with its own position. The human eye sees lines where a series of graphics (words) are roughly in the same horizontal region.
    In the general case it is difficult or even impossible to answer this. You may have columns with different spacing (but the PDF stores no information on what is a column). You may have subscripts and superscripts. You may have text in graphics coinciding with other text. Commonly, there may be titles, headings or page numbers which are just ordinary text and might count as lines.
    That said, what you need to do is extract the text on the page and its positions. The WordFinder APIs are the way to do that. Now, sort all the words out, using the Y coordinates and size to try and guess what makes a "line". Now you are in a position to find the text (divided into words, not strings) and report the "line number" you have estimated.

  • Adding text to PDF using iText instead of CFPDF

    Hi,
    I know this may seem a bit off topic being posted here but i'm asking this board since i'm a complete JAVA noob and i figure some of you CF folk might have had to do this before.
    Anyway, about my question...i'm already adding a watermark image to a pdf using iText (CF8) thanks to the help of fellow poster (=cfSearching=).  What i'm looking for is the best way to go about adding some text to this same pdf.  I need to add 4 lines of text (with specific font and size) and center it underneath the added image.   Does anyone have a site they could point me to as to how to add formatted text and how to get the width of that text so as to align it correctly?  I've search Google and looked at a lot of JAVA code but being a JAVA noob it's tough to figure out exactly which libs and methods can be used to do this. 
    Any help would be greatly appreciated!
    -Michael

    Hi again!
    Well, the merged image is an idea but i'd rather have it be actual text so that it is at least copy/paste-able if viewed on a computer.
    The four lines of text are dynamic (company name, broker name, phone number, email address) and limited to 40 characters.  Right now they are being added via CFPDF and DDX and use the following code in the DDX file to add it to the PDF.
    <PDF result="DestinationFile">
         <PDF source="SourceFile">
              <Watermark
              rotation="0"
              opacity="100%"
              horizontalAnchor="#horzAnchor#"
              horizontalOffset="#horzOffset#"
              verticalAnchor="#vertAnchor#"
              verticalOffset="#vertOffset#"
              alternation="OddPages"
              >
                   <StyledText text-align="center">
                        <p font="#font#" color="#color#" >#left(dCompany,maxlinechars)#</p>
                        <p font="#font#" color="#color#" >#left(dName,maxlinechars)#</p>
                        <p font="#font#" color="#color#" >#left(dPhone,maxlinechars)#</p>
                        <p font="#font#" color="#color#" >#left(dEmail,maxlinechars)#</p>
                   </StyledText>
              </Watermark>
         </PDF>
    </PDF>
    Then using the created pdf from above, i use a slightly modified version of the cfscript code ( that uses iText) you provided me previously to add a logo image just above this text.  The only changes i made to it were resizing of the image and adding where to place it.  Here is that code:
    <cfscript>                    
        fullPathToInputFile = "#tempdestfilepath#";
         writeoutput("<br>fullPathToInputFile=#fullPathToInputFile#");
        fullPathToWatermark = osFile("#request.logofilepath##qord.userlogo_file#",request.os);
         writeoutput("<br>fullPathToWatermark=#fullPathToWatermark#");
        fullPathToOutputFile =  "#destfilepath#";
         writeoutput("<br>fullPathToOutputFile=#fullPathToOutputFile#");
         ppi = 72; // points per inch
         watermark_x =  ceiling(#qord.pdftemplate_logo_x# * ppi);      // from bottom left corder of pdf
         watermark_y =  ceiling(#qord.pdftemplate_logo_y# * ppi);     // from bottom left corder of pdf
         fh = ceiling(0.75 * ppi);
         fw = ceiling(1.75 * ppi);
       if( not fileexists(fullPathToInputFile) )
                  savedErrorMessage = savedErrorMessage & "<li>Input file pdf for logo add does not exist<br>#fullPathToInputFile#</li>";
       else
                 try {
                 // create PdfReader instance to read in source pdf
                 pdfReader = createObject("java", "com.lowagie.text.pdf.PdfReader").init(fullPathToInputFile);
                 totalPages = pdfReader.getNumberOfPages();
                 // create PdfStamper instance to create new watermarked file
                 outStream = createObject("java", "java.io.FileOutputStream").init(fullPathToOutputFile);
                 pdfStamper = createObject("java", "com.lowagie.text.pdf.PdfStamper").init(pdfReader, outStream);
                 // Read in the watermark image
                 img = createObject("java", "com.lowagie.text.Image").getInstance(fullPathToWatermark);
                    w = img.scaledWidth();
                   h = img.scaledHeight();
                   //$is[0] = w
                   //$is[1] = h
                   if( w >= h )
                      orientation = 0;
                  else
                      orientation = 1;
                      fw = max_h;
                      fh = max_w;
                  if ( w > fw || h > fh )
                      if( ( w - fw ) >= ( h - fh ) )
                          iw = fw;
                          ih = ( fw / w ) * h;
                      else
                          ih = fh;
                          iw = ( ih / h ) * w;
                      t = 1;
                  else
                      iw = w;
                      ih = h;
                      t = 2;
                 // adding content to each page
                 i = 0;
                 //while (i LT totalPages) {
                     i = i + 1;
                     content = pdfStamper.getOverContent( javacast("int", i) );
                     img.setAbsolutePosition(javacast("float", watermark_x), javacast("float", watermark_y));
                        if(t==1)
                             img.scaleAbsoluteWidth( javacast("float", iw) );
                             img.scaleAbsoluteHeight( javacast("float", ih) );
                     content.addImage(img);
                     WriteOutput("Watermarked page "& i &"<br>");
                 //WriteOutput("Finished!");
                 catch (java.lang.Exception e) {
                 savedErrorMessage = savedErrorMessage & "<li>#e#</li>";
             // closing PdfStamper will generate the new PDF file
             if (IsDefined("pdfStamper")) {
                 pdfStamper.close();
             if (IsDefined("outStream")) {
                 outStream.close();
    </cfscript>
    The above code resized the image to a certain width/height if needed and adds it to the pdf. 
    I just figured they might be a way to tap into one of the java objects that would allow adding the text.  Ideally, adding the text and image to some sort of 'bounding box' that would allow centering of the image and text in relation to that bounding box.  Or if there is no way to add to a bounding box, a way to get the horizontal length of the longest line of text so i could calculate a common centerline for the image and text.
    I've attached the following pdf to show how the image and text would look together.  This example is not to scale but a similar image and text would be added to a separate pdf.
    Thanks for you help.

  • Vertical Text in PDF using CFDOCUMENT

    I am using font tag in a CSS file to layout a table header
    using vertical text. In HTML, the vertical text looks fine.
    However, when I convert the table to a pdf using
    <cfdocument>, the vertical text is displayed as horizintal
    text and does not follow the css specified font family, color or
    size.
    Here is the line in the CCS I am referencing:
    .header_vertical {FONT-WEIGHT: bold; FONT-SIZE: 8pt;
    FONT-STYLE: normal; writing-mode:tb-rl; FONT-FAMILY: helvetica,
    arial, verdana, sans-serif; TEXT-DECORATION: none; COLOR: #0f437c}
    This is CFMX7 on a Windows Server 2003 OS running IIS.
    Any ideas???
    Thanks.

    Hi there, did you find a solution to this?
    I had the same issue and no matter what i tried it didn't
    work. I found out that CFDOCUMENT doesn't support CSS2.
    Eventually I came up with a clunky solution, but had no other
    choice. I bought some imaging software called Alagad (
    http://www.alagad.com) which
    produces the vertical text as images on the fly. Its not ideal, but
    there was no ther way I could disply the text.
    Hope this helps you.
    Ally

  • Can not get proper font , alignment while generation pDF using Itextsharp

      
     I am developing a winform in which i m taking html data from  which have in line css so when i m genrating pdf it is 
    not properly aligned.
     private void HtmlToPdfConvert()
                try
                    string ClientID;
                    string AssociateID;
                    string DocumentType;
                    //styles.LoadTagStyle(HtmlTags.H1, HtmlTags.FONTSIZE, "16");
                    //styles.LoadTagStyle(HtmlTags.P, HtmlTags.FONTSIZE, "20");
                    //styles.LoadTagStyle(HtmlTags.P, HtmlTags.COLOR, "Green");
                   // styles.LoadTagStyle(HtmlTags.DIV, HtmlTags.COLOR, "Green");
                    string file1 = ConfigurationManager.AppSettings["Pdffilename"].ToString();
                    HtmltoPdfBusinessLogic htmlpdf = new HtmltoPdfBusinessLogic();
                    ds = htmlpdf.GetContent();
                    if (ds != null)
                        for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                            file2 = file1;
                            label2.Text = ds.Tables[0].Rows[i]["PdfFileName"].ToString();
                            string fname = label2.Text.ToString();
                            string[] words = fname.Split('_');
                            for (int j = 0; j < words.Length - 2; j++)
                                ClientID = words[0];
                                file2 = file2 + ClientID;
                                AssociateID = words[1];
                                file2 = file2 + "\\" + AssociateID;
                                DocumentType = words[2];
                                file2 = file2 + "\\" + DocumentType;
                            //Directory.CreateDirectory(file2);    
                            pdffname = file2 + "\\" + label2.Text + ".pdf";
                            if (System.IO.Directory.Exists(file2))
                                string[] files = System.IO.Directory.GetFiles(file2);
                                if (files.Length > 0)
                                    foreach (string file in files)
                                    File.Delete(file);
                                    ConvertHtmlToPdf(i);
                                else
                                    ConvertHtmlToPdf(i);
                            else
                                ConvertHtmlToPdf(i);
                        this.Close();
                        //if (ds.Tables[0].Rows.Count < 1)
                        //    MessageBox.Show("Documents Are Not Exist");
                        //    this.Close();
                    /*  System.IO.Directory.CreateDirectory((file2));
                      outputFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), pdffname);
                      label1.Text = ds.Tables[0].Rows[0]["TM_Content"].ToString();
                      string htmltxt = label1.Text.ToString() + imgpath;
                      // HtmlStream = label1.Text;
                      Document document = new Document(PageSize.A4, 5, 5, 15, 5);
                      FileStream fs = new FileStream(outputFile, FileMode.Create, FileAccess.Write, FileShare.None);
                      PdfWriter w = PdfWriter.GetInstance(document, fs);
                      document.Open();
                      List<IElement> objects = HTMLWorker.ParseToList(new StringReader(htmltxt), styles);
                      foreach (IElement element in objects)
                          document.Add(element);
                      document.Close();
                      file2 = string.Empty;
                catch (Exception exp)
                    MessageBox.Show(exp.Message);

    iText is a third party library to create PDF originally written for java. iTextSharp is the C# adaptation of that library.
    Question regarding iText are better asked on the iText forum, rather then the Microsoft Forum:
    http://itextpdf.com/support
    They mostly use StackOverflow and SourceForge for the free support, so either of those might be a good place to start.
    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

  • Can't seem to save non-English as text from PDF using Reader

    I have several PDF documents that were originally generated by OpenOffice from a UTF8-encoded text file. The text is in different languages, e.g. Korean, Arabic, Russian, English. When I open these documents and then "save as text", the resulting text files contain garbage or nothing at all in all cases except for English. Is it possible to extract non-English text from a PDF document using Reader? If not, is there a different product that could be used for this purpose? Thanks much!

    They're using fonts that you don't have on your system so no, it isn't possible with Reader.

  • Outline box when editing text in PDF using v8

    We are running, Windows XP, Acro8 with updates. Created PDF files from within INDCS3. Many of the frames are independent.
    When trying to edit the text using the touchup text tool in Acrobat v8, it outlines complete area on the form which are not the same as the frames in INDCS3.
    Was this something new in v8 and how could this be removed via preferences.
    KPanthen, Albany, NY

    This started happening back in AA6 I think. It is not new.

  • Text file printing using servlets

    Hello everybody ,
    i am stuck in very difficult situation in my application ,my client want to print the files generated in the server to their respective local printers without opening the
    file .I tried java.awt.print and also javax.print /*
    * PrintText.java
    * Created on April 22, 2009, 11:50 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    * @author Rajshekar
    package com.kiocl.MRV;
    import java.awt.*;
    //import java.awt.event.*;
    import java.awt.print.*;
    import java.io.*;
    public class Printtext implements Printable {
    RandomAccessFile theFile;
    int fontSize = 10;
    int linesPerPage, numOfPages;
    Font theFont = new Font("Courier New", Font.ROMAN_BASELINE, fontSize);
    //public PrintText(String Filename) {
    public Printtext(String Filename) {
    // String Filename = "e:\\plsql.pdf";
    try {
    theFile = new RandomAccessFile(Filename, "r");
    } catch (FileNotFoundException fnfe) {
    System.out.println("File not found: " + Filename);
    System.exit(0);
    PrinterJob job = PrinterJob.getPrinterJob();
    int numOfLines = 0;
    String s;
    try {
    //String s;
    while ((s = theFile.readLine()) != null) numOfLines++;
    } catch (IOException e) { e.printStackTrace(); }
    linesPerPage = (int)job.defaultPage().getImageableHeight() / fontSize;
    numOfPages = numOfLines / linesPerPage + 1;
    Book myBook = new Book();
    myBook.append(this, job.defaultPage(), numOfPages);
    job.setPageable(myBook);
    job.setCopies(1);
    if (job.printDialog()) {
    try {
    System.out.println("printing...");
    job.print();
    } catch (PrinterException pe) {
    System.out.println("printer error");
    System.exit(0);
    else {
    System.out.println("user did not print");
    //System.exit(0);
    public int print(Graphics g, PageFormat pf, int index) throws PrinterException {
    if (index >= numOfPages) return Printable.NO_SUCH_PAGE;
    g.setFont(theFont);
    g.setColor(Color.black);
    //Paper paper=pf.getPaper();
    //paper.setSize(15,12);
    //pf.setPaper(paper);
    try {
    theFile.seek(0);
    for(int i = 0; i < linesPerPage * index; i++)
    theFile.readLine();
    int y = (int)pf.getImageableY() + 12;
    String s;
    for(int i = 0; i < linesPerPage; i++) {
    s = theFile.readLine();
    if (s == null) break;
    if (s.length() > 0)
    g.drawString(s, (int)pf.getImageableX(), y);
    y += 12;
    } catch (IOException e) {
    e.printStackTrace();
    throw new PrinterException();
    return Printable.PAGE_EXISTS;
    } but both are printing on the server connected printer not client connected printer.
    So plz plz plz some help me with some code to print the text file from server to client printer without opening it .
    Edited by: Mani_patil on Apr 24, 2009 10:02 AM

    but both are printing on the server connected printer not client connected printer.
    So plz plz plz some help me with some code to print the text file from server to client printer without opening it .Don't you think it would be a security threat if you could print on the client printer from the server?

  • XSL/Fo to PDF using Servlet

    Hi all!
    I want to to write a servlet which should convert a XSL/FO /XML file to a PDF format..i tried to do so.. but i am getting this error.. and i added the relevent Jars..please help in this regard.thanks in advance..
    SRVE0026E: [Servlet Error]-[com.foptest.FopServlet]: java.lang.NoSuchMethodError: org.apache.fop.apps.Fop: method <init>(Ljava/lang/String;Lorg/apache/fop/apps/FOUserAgent;Ljava/io/OutputStream;)V not found

    Hi Shah H
    Thank you for your answer !
    Well, how can I explain you more in detail ?
    After the standard give me the Data to show it with an SAP Script Form (OTF structure) I have found a way how to convert them into a XML structure.
    Together with a XSL file than we pass the file to a print system. There they print the forms.
    In the same time to this we want to look also the form at the screen.
    To guarantee that we see the same result as from the print screen we also want to create the PDF from the same source. That means from the XML and XSL files. So to convert them to a PDF file  I think I must go outside the system.
    Now, I have read that as you also mention this is possible thru Apache project or cocoon.
    But how exactly must this be configured I never have done this before:
    - On with transaction in SAP can this be configured ?
    - Which customizing must be done ?
    Are this explanations comprehensible for you ?
    Thanks in advantage
    Sandro

  • Header columns alignment in PDF using CFDOCUMENTITEM

    Hi All,
    I'm creating a PDF with CFDOCUMENT tags and using CFSAVECONTENT tags. I will do the formatting everything inside the CFSAVECONTENT Variable and create the PDF using the save content variable.
    <cfdocument format="PDF" orientation="landscape">
          <cfoutput>#strContent#</cfoutput>
    </cfdocument>
    The generated pdf will have 5 or 6 pages which will have a table kind of structure.
    My client needs the header columns on each page of the PDF. As of now, I'm having the header column in the first page alone.
    I tried using CFDOCUMENTITEM TYPE="Header"; I'm seeing the columns as some text with no alignment as a row.
    How to align that so that it looks as a header?
    I tried the one below;
    <cfdocument format="PDF" orientation="landscape">
         <cfdocumentitem type="header">
        <html>
         <tr style="font-weight: bold; font-size: 8pt; text-align:left">
                  <td width="10%">Test<br>Number</td>
                <td width="11%">Test B</td>
                <td width="18%" align="Center">Test<br>Factor</td>
                <td width="18%" align="left">Test c</td>
                <td width="4%" align="left">Test Qty</td>
                <td width="4%">%<br>Impact</td>
                <td width="10%"align="center">Test Owner</td>
                <td width="6%">Date</td>
                <td width="17%" align="left">Comments</td>
            </tr>
            </html>
          <cfoutput>#strContent#</cfoutput>
    </cfdocument>
    Thanks in advance for your help!

    Got this header formatting working by using CFSAVECONTENT before the CFDOCUMENT tag.
    Not sure why my style sheets not working inside the CFDOCUMENT tag.

  • PDF: Can I re-align text?

    I have a pdf (NOT the original document). At the top of each page is a headline that's centered. My client wants me to add on a few words to these headlines. However, when I do this, the text just adds to the right. I can't see where to re-align the text so it's once again centered. Or at least get them all left-justified. Any ideas?
    I thought about deleting the headline and creating a new header... but I can't even figure out how to add in text (other than on the original line). I looked it up online and found something about the Text Annotation tool... but I can't find it in version 9. Would that be an option? Or is that just an editing tool?
    And yes, I know Acrobat is not an editing program. But I don't have much choice in this situation, as there is no original document.
    Thanks.
    Julie

    You have some (limited choices) - highlight the text and then right-click and PROPERTIES. From here you can see if you indeed align the text within the frame but this does not always work (depends how the text content was created via the source document). Also, if you wish to create a new text frame then using the touch-up text tool, find a BLANK area inside your PDF (no text, image or anything else) and then hold the ALT key down whilst clicking - new text frame. Don't forget to use the touch-up object tool if you're using Acrobat Pro (not in the Standard version).
    Here's one of my documents which might help : http://certitec.com/pdf/acrobat8top10tips.pdf
    Cheers,
    Jon

  • Report Title and Text Area issue when exported to pdf using Viewer

    Hi there,
    We are using OracleBI Discoverer Version 10.1.2.55.26
    We have reports that displays Report title containing the following
    - Report Title
    - Runt Date and Time
    - Page No
    And text area which displays 'Last Page'
    Following properties are set at the worksheet level using page setup
    Report Title --> 'Print on every Page'
    Text Area --> 'Print on last page'
    The report when exported to PDF using Discoverer plus works fine and displays report title and text area as defeined.
    But when we try to export the same report to pdf from Discoverer viewer, it displays
    - Report title on first page only.
    - text area on all pages
    All our users accesses report using discoverer viewer so we cannot open discoverer plus to them.
    Is there a solution which will enable us to export the report in pdf using discoverer viewer and displays the same output as discoverer plus.
    Please let me know... If you have any questions then please feel free to ask.
    Thanks in advance for your help...
    Manish

    but when opened on other os x machines some text is colored differently than it should be
    Well, if typographic objects are colour managed, the colour appearance is dependent on the source ICC profile that describes the colourants in the typographic objects and the destination ICC profile that describes the colours the display is able to form and the RBC colourant combinations that will form those colours.
    In general, typographic objects should have special treatment, since the expectation is not that typographic objects should be colour managed, but that typographic objects should simple be set to the maximum density of dark. On a display, that is R=0 G=0 B=0 and on a seperations device (a lithographic press) that is C=0 M=0 Y=0 K=100.
    If for some reason typographic objects are colour managed, and if the ICC profiles for the displays are off by half a mile or more in relation to the actual state of the display system, then the colours will not be the same. On the other hand, if those displays are calibrated and characterized, then the colourants will be converted to form the same colours on the displays.
    /hh

  • How to replace numbers with text in tax return pdf using Adobe Acrobat X Pro

    How do I replace numbers with text in tax return pdf using Adobe Acrobat X Pro? The tax return was created using CCH software. Thanks for your review.

    Thanks Bill for your quick reply. CCH software is one of the major
    suppliers of tax return software. I found an internal source that helped me
    make the changes from numbers to text i.e. "$123,456" to "See Schedule O".
    I am not sure if I am working in form or final text. Thanks again! Kelly

  • Setting Font for converting multiple text files into PDF using VB 6.0

    Dear All,
    Am converting multiple text files into PDF using VB6.0. Currently, am unable to control the font face and size for the generated files. Below is the procedure am using for each file;
    Public Sub proc_convert_to_PDF(srcFilename As String, destFilename As String)
    Dim p_AcroApp As CAcroApp
    Dim p_VDoc As CAcroAVDoc
    Dim p_DDoc As CAcroPDDoc
    Dim IsOk As Boolean
    Set p_AcroApp = CreateObject("AcroExch.App")
    Set p_VDoc = CreateObject("AcroExch.AVDoc")
    Call p_VDoc.Open(srcFilename, "")
    Set p_VDoc = p_AcroApp.GetActiveDoc
    If p_VDoc.IsValid Then
    Set p_DDoc = p_VDoc.GetPDDoc
    ' Fill in pdf properties.
    p_DDoc.SetInfo "Title", Format(Date, "dd-mm-yyy")
    p_DDoc.SetInfo "Subject", srcFilename
    If p_DDoc.Save(1 Or 4 Or 32, destFilename) <> True Then
    MsgBox "Failed to save " & srcFilename
    End If
    p_DDoc.Close
    End If
    'Close the PDF
    p_VDoc.Close True
    p_AcroApp.Exit
    'Clear Variables
    Set p_DDoc = Nothing
    Set p_VDoc = Nothing
    Set p_AcroApp = Nothing
    End Sub
    What I need;
    1) to be able to set the font face of the destination file ( destFilename)
    2) to be able to set the font size of the destination file ( destFilename)
    Am using Adobe Acrobat 7.0 Type Library
    Kindly Help.
    Thanks in advance

    We didn't say it doesn't work. We said it isn't supported.
    There are a number of other ways to make a PDF. The one which would
    give the most control is if your application directly printed to GDI,
    controlling the font directly. This could print to Adobe PDF.
    You could look for an application that gives control of font for
    printing.
    You could use a text-to-PostScript system and distill the result. You
    could even look for a non-Adobe text-to-PDF.
    Working in the unsupported and dangerous world you chose, the font
    size for text conversion is set (and this is very bad design from
    Adobe) in the settings for Create PDF > From Web Page. There is no API
    to this.
    Aandi Inston

Maybe you are looking for

  • Need help with my SL

    hello ladies and gents, i got a zen sleek and a love it only thing that sucks is the lack of assessories. my question is...is there any way to hook up the sleek to you car audio system with using a cassette adapter or FM transmitter. by the way i do

  • Matchcode for subscreen select options

    Hi, I am displaying a selection screen subscreen as a popup in my report using module pool and it has two fields say, 1. ABC 2. XYZ I need to implement custom search help for these two fields. The problem is where to implement this?? My report struct

  • Outlook clients get prompt for credentials

    I have get the following strange problem that when the Exchange server restart and get back on-line my outlook clients all get prompt to enter their credentials. If they open and close Outlook it works until there is a lost in communication between O

  • Bapi run time error

    I am running a report where i am calling the bapi BAPI_OBJCL_GETCLASSES... in the prod environment i am run time error saying that... bapi has exceeded maximum time... how would i overcome this issue......

  • Hello, what happened to my tabs when i updated firefox?

    My home button is on the right instead of the left. all my buttons for my most visited is gone. What is dashboard and wave? I dont need it if i dont know what is . i had a cool app that it had all my current history of where i had been. so much bette