Generate new pdf filename

I have an application that prints a series of documents to pdf. In the pdf printing preferences sheet I have selected an output directory. Unfortunately each subsequent pdf overwrites the previous one. Is there any way to have Acrobat create a new filename for each file?
Thanks. Jack.

>have an application
What application, and what are the settings in that application?

Similar Messages

  • Generate a new pdf report with itens on my pdf form

    Hi! My name is Heitor.
    I have Adobe Forms Central and Adobe Acrobat XI Pro installed on my machine.
    I would like to know if its possible to make a pdf report.
    Example: Clicking in a button "print" on my already open and filled pdf form, and gathering all my 30 itens (see that i am only showing 5 itens on my form. but on my form exists a "Add" button to add itens on variables) on a dropdown list and generating a new pdf report with all these itens listed.
    Thanks!
    Heitor Teixeira
    www.heitorteixeira.com

    Hi! My name is Heitor.
    I have Adobe Forms Central and Adobe Acrobat XI Pro installed on my machine.
    I would like to know if its possible to make a pdf report.
    Example: Clicking in a button "print" on my already open and filled pdf form, and gathering all my 30 itens (see that i am only showing 5 itens on my form. but on my form exists a "Add" button to add itens on variables) on a dropdown list and generating a new pdf report with all these itens listed.
    Thanks!
    Heitor Teixeira
    www.heitorteixeira.com

  • Images present in datagridview not exporting to file only text contents are generating into PDF file..

    Hi Everyone,
       I have created simple Desktop app in that I trying to generate PDF file from Datagridview...when I click on ExportPDf button Pdf file is generation successfully but the issue is in that pdf whatever the images has present in datagridview that images
    are not generation into PDF only the text contents are Present in PDF file.
      Does any one can tell me how to generate the PDF file along with images.
    Here is my code:
      private void btnexportPDF_Click(object sender, EventArgs e)
                int ApplicationNameSize = 15;
                int datesize = 12;
                Document document = null;
                try
                    SaveFileDialog savefiledg = new SaveFileDialog();
                    savefiledg.Filter = "All Files | *.* ";
                    if (savefiledg.ShowDialog() == DialogResult.OK)
                        string path = savefiledg.FileName;
                        document = new Document(PageSize.A4, 3, 3, 10, 5);
                        PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(path + ".pdf", FileMode.Create));
                        document.Open();
                        // Creates a phrase to hold the application name at the left hand side of the header.
                        Phrase phApplicationName = new Phrase("Sri Lakshmi Finance,Hosur-560068", FontFactory.GetFont("Arial", ApplicationNameSize, iTextSharp.text.Font.NORMAL));
                        // Creates a phrase to show the current date at the right hand side of the header.
                        Phrase phDate = new Phrase(DateTime.Now.ToLongDateString(), FontFactory.GetFont("Arial", datesize, iTextSharp.text.Font.NORMAL));
                        document.Add(phApplicationName);
                        document.Add(phDate);
                        iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance("D:\\logo.JPG");
                        document.Add(img);
                        iTextSharp.text.Font font5= iTextSharp.text.FontFactory.GetFont(FontFactory.TIMES_ROMAN, 5);
                        iTextSharp.text.Font font6 = iTextSharp.text.FontFactory.GetFont(FontFactory.HELVETICA_BOLD, 6);
                        //float[] columnDefinitionSize = { 2.5f, 7.0f,6.6f, 8.6f, 6.6f, 5.0f, 4.5f, 7.0f, 6.3f, 7.0f, 3.5f, 6.0f, };
                        PdfPTable table = null;
                        table = new PdfPTable(dataGridView1.Columns.Count);
                        table.WidthPercentage = 100;
                        PdfPCell cell = null;
                        foreach (DataGridViewColumn c in dataGridView1.Columns)
                            cell = new PdfPCell(new Phrase(new Chunk(c.HeaderText,font6)));
                            cell.HorizontalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.VerticalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.BackgroundColor = new iTextSharp.text.BaseColor(240, 240, 240);
                            table.AddCell(cell);
                        if (dataGridView1.Rows.Count > 0)
                            for (int i = 0; i < dataGridView1.Rows.Count; i++)
                                PdfPCell[] objcell = new PdfPCell[dataGridView1.Columns.Count];
                                for (int j = 0; j < dataGridView1.Columns.Count - 0; j++)
                                    cell = new PdfPCell(new Phrase(dataGridView1.Rows[i].Cells[j].Value.ToString(), font5));
                                    cell.HorizontalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.VerticalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.Padding = PdfPCell.ALIGN_LEFT;
                                    objcell[j] = cell;
                                PdfPRow newrow = new PdfPRow(objcell);
                                table.Rows.Add(newrow);
                        document.Add(table);
                        MessageBox.Show("PDF Generated Successfully");
                        document.Close();
                    else
                        //Error 
                catch (FileLoadException fle)
                    MessageBox.Show(fle.Message);
                    MessageBox.Show("Error in PDF Generation", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
    Runtime Gridview content:
    Generated PDF File:
    Thanks & Regards RAJENDRAN M

    Hi Everyone,
       I have created simple Desktop app in that I trying to generate PDF file from Datagridview...when I click on ExportPDf button Pdf file is generation successfully but the issue is in that pdf whatever the images has present in datagridview that images
    are not generation into PDF only the text contents are Present in PDF file.
      Does any one can tell me how to generate the PDF file along with images.
    Here is my code:
      private void btnexportPDF_Click(object sender, EventArgs e)
                int ApplicationNameSize = 15;
                int datesize = 12;
                Document document = null;
                try
                    SaveFileDialog savefiledg = new SaveFileDialog();
                    savefiledg.Filter = "All Files | *.* ";
                    if (savefiledg.ShowDialog() == DialogResult.OK)
                        string path = savefiledg.FileName;
                        document = new Document(PageSize.A4, 3, 3, 10, 5);
                        PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(path + ".pdf", FileMode.Create));
                        document.Open();
                        // Creates a phrase to hold the application name at the left hand side of the header.
                        Phrase phApplicationName = new Phrase("Sri Lakshmi Finance,Hosur-560068", FontFactory.GetFont("Arial", ApplicationNameSize, iTextSharp.text.Font.NORMAL));
                        // Creates a phrase to show the current date at the right hand side of the header.
                        Phrase phDate = new Phrase(DateTime.Now.ToLongDateString(), FontFactory.GetFont("Arial", datesize, iTextSharp.text.Font.NORMAL));
                        document.Add(phApplicationName);
                        document.Add(phDate);
                        iTextSharp.text.Image img = iTextSharp.text.Image.GetInstance("D:\\logo.JPG");
                        document.Add(img);
                        iTextSharp.text.Font font5= iTextSharp.text.FontFactory.GetFont(FontFactory.TIMES_ROMAN, 5);
                        iTextSharp.text.Font font6 = iTextSharp.text.FontFactory.GetFont(FontFactory.HELVETICA_BOLD, 6);
                        //float[] columnDefinitionSize = { 2.5f, 7.0f,6.6f, 8.6f, 6.6f, 5.0f, 4.5f, 7.0f, 6.3f, 7.0f, 3.5f, 6.0f, };
                        PdfPTable table = null;
                        table = new PdfPTable(dataGridView1.Columns.Count);
                        table.WidthPercentage = 100;
                        PdfPCell cell = null;
                        foreach (DataGridViewColumn c in dataGridView1.Columns)
                            cell = new PdfPCell(new Phrase(new Chunk(c.HeaderText,font6)));
                            cell.HorizontalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.VerticalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.BackgroundColor = new iTextSharp.text.BaseColor(240, 240, 240);
                            table.AddCell(cell);
                        if (dataGridView1.Rows.Count > 0)
                            for (int i = 0; i < dataGridView1.Rows.Count; i++)
                                PdfPCell[] objcell = new PdfPCell[dataGridView1.Columns.Count];
                                for (int j = 0; j < dataGridView1.Columns.Count - 0; j++)
                                    cell = new PdfPCell(new Phrase(dataGridView1.Rows[i].Cells[j].Value.ToString(), font5));
                                    cell.HorizontalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.VerticalAlignment = PdfPCell.ALIGN_LEFT;
                                    cell.Padding = PdfPCell.ALIGN_LEFT;
                                    objcell[j] = cell;
                                PdfPRow newrow = new PdfPRow(objcell);
                                table.Rows.Add(newrow);
                        document.Add(table);
                        MessageBox.Show("PDF Generated Successfully");
                        document.Close();
                    else
                        //Error 
                catch (FileLoadException fle)
                    MessageBox.Show(fle.Message);
                    MessageBox.Show("Error in PDF Generation", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
    Runtime Gridview content:
    Generated PDF File:
    Thanks & Regards RAJENDRAN M
    Hello,
    Since this issue is mainly related to iTextSharp which belongs to third-party, I would recommend you consider posting this issue on its support website to get help.
    Maybe the following forum will help.
    http://support.itextpdf.com/forum/26
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Generate multiple PDFs using FOP

    Hello,
    please take a look to the following code snipplet it is intended for the generation of a PDF document. The PDF-content is written to an OutputStream which works quite well.
    The problem is that I want to append some more PDF content to the OutpuStream, but these seams to be impossible. Is there anybody who merged several PDF-Streams to one "big OutputStream" ?
    try
    driver.setOutputStream(pdf);
    //Setup XSLT
    TransformerFactory factory = TransformerFactory.newInstance();
    Transformer transformer = factory.newTransformer(new StreamSource(xslt));
    //Setup input for XSLT transformation
    Source src = new StreamSource(xml);
    //Resulting SAX events (the generated FO) must be piped through to FOP
    Result res = new SAXResult(driver.getContentHandler());
    //Start XSLT transformation and FOP processing
    transformer.transform(src, res);
    System.out.println("first transformation...");
    finally
    pdf.close();
    }

    Hang on, your thread title suggests you want to generate multiple PDF documents from a single xml source, but the text is talking about combining pdf content.
    I'm not sure which one you really want so I'll the first one.
    I've recently had to generate multiple pdf documents from a single xml source. I used the following (hoping the tags render okay):
                   <xsl:result-document href="{$filename}" format="html">
                        <!-- document root here -->
                        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
                             <xsl:call-template name="masterSet"/>
                             <!-- Apply the ID template to this instance of the ID element -->
                             <xsl:apply-templates select="."/>
                        </fo:root>
                   </xsl:result-document>I used the Saxon engine to split the xml into multiple .fo documents and then ran FOP over each of these.
    The 'xsl:result-document href="{$filename}" format="html"' element does the splitting. Obviously, the filename variable defines the path to the outpute file. You'll no doubt define that within some kind of for-each loop.

  • How to auto add in pdf filename (shown in footer) by using Java Script?

    In order to have nice tracking a document, I want to print the file name as a header or footer when printing the documents. 
    How can this be done?  
    Found a perfectly nice post related to same issue
     http://forums.adobe.com/thread/302996 
     (Many thanks on every contribuitors inside that posts)  
     In the above post,  found that ##Reinhard had shared some well nice scripts for "enable to put in filename in the footer for every document, just by 1 simple click in each documents"  
    For the time being, 
    if i would like to generate a script that allowing 
    1) Only adding / showning the pdf filename in the footer
    2) Auto Run/Execute on this script for all documents, which means without any click but it will auto showing the "filename at footer" when any document opening.  
    Hope any experts can give a help on this.   
    PS: Currently using Adobe Acrobat 10 & Reader 11 // OS = Windows 7 
    Many thanks ^^

    My code for above method is Floor #2
    var FileNM = this.documentFileName;
    for (var p = 0; p < this.numPages; p++)
    var fd = this.addField("xftDate", "text", p, [30,15, 290,30]);
    fd.textSize=5; fd.value = " (" + FileNM +")";
    It works for me & my PC, however I unable to applied same things into a JavaScript.js file
    Hope any experts could help and advice.
    Many thanks.

  • How to generate a PDF output using batch file in 10G

    Hello,
    I am using .bat file to generate a report PDF output. I have done this many times in 6i but for 10G I am unable to do the same.
    Can someone please look at the syntax below and let me know where I am going wrong.
    I understand that reports are different for 6i and 10G specially .rep file but I am sure we should be able to generate a PDF file using 10G. Please let me know.
    Thanks
    IQ
    Contents of .bat file follow
    ECHO Opening parameter form. Please do not close this window.
    C:\
    FOR /F "tokens=1 " %%I IN ('time /t') DO (SET _TIME=%%I)
    FOR /F "tokens=2 " %%I IN ('date /t') DO (SET _DATE=%%I)
    SET EXP_DATE=%_DATE:~6,4%%_DATE:~0,2%%_DATE:~3,2%_%_TIME:~0,2%%_TIME:~3,2%
    SET FILENAME=SEND_EMAIL_%EXP_DATE%_%USERNAME%.PDF
    CD C:\Users\Documents
    RWCONVERTER REPORT=C:\Users\Documents\send_email.rep USERID=scott/tiger@ORCL1 ORIENTATION=LANDSCAPE DESFORMAT=PDF DESTYPE=FILE
    DESNAME=C:\Users\\%FILENAME% PRINTJOB =NO

    Rwconverter is not used to run reports:
    rwconverter (Reports Converter) enables you to convert one or more report definitions or PL/SQL libraries from one storage format to another.
    I think you mean rwrun:
    rwrun (Reports Runtime) runs a report by starting its own in-process server (not to be confused with the default in-process Reports Server), which runs in the same JVM as the rwrun process.
    This bat file has to run on the server. There is no Reports installation on the client anymore.
    If you want to run a report from a client, you can make a bat file that calls the report url
    See: http://download.oracle.com/docs/cd/E14571_01/bi.1111/b32121/pbr_cla002.htm#i634710

  • Error In Generating the PDF Form

    Hi,
    When I'm trying to activate the PDF Form, I got a message asying Error while Generating the PDF Form.
    Can we debugg the Form, if yes, can body tell me how to with this process.
    Any pointers would be a great Help.
    ThankQ
    Rohini.

    Hi Om,
    I need to fix this issue and I had taken help from Rohini.
    I will try to explain the issue in detail.
    I am trying to execute Tax Reporter Transaction PU19. Iam executing Quarterly Form 941 for USA for a Tax Company and a Period. This report gives an output Log and the log had generated errors in the log section General errors and Warnings.
    The errors are :
    Errors in generating the PDF Form : HR_F_941 and
    Errors in generating the PDF Form : HR_F_941_SCHED_B
    As we are new to the PDF Forms we don't know why the report has generated and how to find out by debugging or any other way.
    So I need to find out how the above errors can be identified?
    Thanks and Regards,
    Madhan.

  • Generating a PDF in Web Dynpro without using InteractiveForms

    Hello All,
      I have been following this tutorial <a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial%20on%20working%20with%20the%20pdf%20document%20object%20-%2032.htm">http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial%20on%20working%20with%20the%20pdf%20document%20object%20-%2032.htm</a> from SDN and is currently stuck.
    <u><b>What I'll like to achieve</b></u>
    1) User logs on to the system and a table displaying a list of items for approval appears.
    2) the user is then able to select a row item from the table and click on 'approve'. In doing so, my application should generate a pdf form in the background and attach it as an email attachment and sent that email to an appointed vendor.
    <b><u>Problem</u></b>
    As there is no InteractiveForm involved, I do believe I will need to provide the template (.xdp) so that the PDF can be generated. In the tutorial, it suggests doing this (I modified it a little to reflect my own path name):
    InputStream templateSourceInputStream =     getClass().getClassLoader().getResourceAsStream("d:
    usr
    sap
    pdf
    PDF
    XBCRPDFPreviewView_InteractiveForm1.xdp");
    However, I am given a NullPointerException when I attempt to do that. Does anyone has any idea what may have caused the error ? Thank you.
    from
    Kwok Wei

    Hi Kwok Wei ,
    According to the convention the any file can be placed in the src/mimes/Components/<component package + component name>/folder of your webdynpro project along with other generated files of your application.
    After this you just need to pass the filename to the getResourcestream() method,it automatically picks up the file from the folder.
    Regards
    Aarthi Mathivanan
    Message was edited by: aarthi mathivanan

  • A user uploads a new pdf (using Dreamweaver) but still gets the old version back in browser.

    She downloads the file from the site, and gets the old version of the file instead of the one she just uploaded. I tried it myself and everything is done correctly: the new file is on the server but download keeps displaying the old version. Dreamweaver ticks off the bytes as they are going upstream. I can RDP to the server and see that the newer version is there (by datetime stamp). She is using IE 8 if relevant.
    This only happens with pdf, no caching is turned on in IIS6 - all content updates are instant.
    I have gone in to the temp internet files and deleted the cached version of the file and emptied the trash (Win XP) but it still serves the old version.
    This issue has been reported by other users, but I thought it was user error until it was staring me in the face.
    My final verification was to upload the new document with a new name, delete the old document, and rename the new name to the old name - after that it delivered the new document
    How do I tell the (non-tech) user fix this?
    I've seen references to this on other sites (now that I know it is real, I dug deeper) but the solutions proposed mostly seem to involve changing the query string by adding somthing to the end of it.
    This is out of reach of my user.
    I can't be the first person to encounter this right?
    And note that I went into the server... the document was uploaded, and IIS caching is off.
    I was told by someone here (and I can't reproduce it in my office) that I should tell the user to go to Adobe Reader | Edit | Preferences | Internet.
    Then tell her to uncheck all three boxes (display in browser, allow fast, and allow speculative)
    But I don't see how that would fix it - remember that I deleted the pdf from the internet cache and that didn't solve it.
    Thanks,
       -Chris C. 1972

    I've faced this before too.
    I've tried many different approaches but the most reliable way I've ever found of handling it is to rename the new PDF each time (e.g. adding the revision date into the filename) and update the link in the web page to point to the renamed PDF.
    Works every time.
    Chris C. 1972 wrote:
    I was told by someone here (and I can't reproduce it in my office) that I should tell the user to go to Adobe Reader | Edit | Preferences | Internet.
    Then tell her to uncheck all three boxes (display in browser, allow fast, and allow speculative)
    But I don't see how that would fix it
    Nor me.

  • Generate a PDF export and getting the file or the bytestream to modify it

    Hi everybody
    I have a web dynpro application and want to get the bytestream or the PDF file itself.
    Is there a function (RFC, J2EE-Method, ABAP methode/class) where I can say
    "Hey function, generate a PDF export of a BI report and save the PDF file <br>somewhere in the KM or return the bytestream of the PDF"
    I must be able to define following parameters
    -BI template name
    -values for the selection mask (the same as the BEx BI-Commands to prefill a field in the selection mask)
    -KM path + filename (if the function saves the file in the KM)
    What I already tried:
    Broadcast to KM
    I can start the broadcast automatically using the report RSRD_BROADCAST_STARTER. But the problem is that I can't generate a broadcast setting and so I'm not able to define the filename and selectionmask data dynamically.
    Package RSRD
    When you enter the transaction SE80 and look for the package "RSRD" there are a lot of interesting classes and methods. But I couldn't figure out how to call them to generate a PDF export of a BI report.
    FM RSADOB_PDFREPORT_GENERATE
    This function module have all the parameters I wish. The problem is that it does not work anymore. It's just an internal test for the SAP guys themselves.
    So ...
    Have anybody an idea how to solve this?
    How to generate a PDF export of a BI report and fill the selection mask and get the PDF (as bytecode or file in the KM) ?
    Thanks lot
    Klaudio

    hi,
    Like you said.. steps are simple and clearly mentioned in guide.
    1. create a variable of type string
    2. after configuring the file adapter , go to corresponding receive activity , go to properties tab
    3. search for a property with name as jca.file.FileName . This basically keeps track of file name
    4. for this property, give the value as name of variable created in step 1 above
    5. Use this variable anywhere in assign / transform
    HTH,
    Ketan

  • Garbled fonts when generating a PDF file

    Greetings all:
    I am currently creating a series of documents in FM10 which are then converted to PDF for eventual posting on the web.The first two converted to PDF okay (more or less). I created a chapter template which is used for making the third document. All of the formats and document properties are the same. When I generated the PDF (saved book as PDF), I got some weird results. All of the headings, chapter titles, and other text that used the Lucida Sans Demi Bold font came out garbled. Even the character count doesn't jibe with the original in Frame. I checked to make sure the font is installed in the c:\windows\fonts folder. Adobe PDF is set as the default printer. I tried generating the PDF with "Rely on system fonts only, do not use document fonts" checked and un-checked both. There was no difference in the output.
    I don't have much of a choice in fonts. The people I'm doing the work for really want to use the Lucida Sans Demi Bold font. Other sans-serif fonts look okay in regular type but their bold faces are too bold.
    Fonts aside, what's going on with the PDF conversion and why am I getting it now with this new document when it worked before with the other two documents?
    BTW - I'm using the PDF add-on that came with FM10. We don't have the full version of Acrobat installed. No one to compare notes with here, I'm the only writer and the only FM10 user. On a Win7 platform.

    Make certain that the "Convert CMYK Colors to RGB" option is checked in your SaveAsPDF window. Otherwise, you're using the CMYK workflow, which has some serious problems.
    [Please ignore the upper highlight - re-cycled image]

  • Acrobat 9 Batch Processing - Get PDF filenames from folder?

    Hello,
    Can anyone provide me with an example with how to use Batch Processing (when set to a specific folder/files) to get a list of filenames in that folder? I haven't been able to find any examples online. There doesn't seem to be any built in batch sequences that automatically do this so I assume it will need to be done with javascript?
    Ultimately, I need to automate a process (I was hoping to create a batch sequence to accomplish this) that will allow me to prompt a user to pick a source folder of PDFs and then based on that selection, run a Javascript that I create which will merge all PDFs in that folder into a new PDF, apply some crop setttings to each page, and then prompt the user where to save the merged PDF?
    Has anyone ever done anything like this? I would love to see an example of how this might be able to be achieved.
    Many thanks in advance.

    Have you tried to create a test batch process (now called Actions)?  Actions in Acrobat 10 has the "merge all files in folder" option, and batch processing in previous versions has always included a page crop commad as well as an option for asking the user where to save the file.
    There are lots of examples and articles on this topic at http://www.acrobatusers.com
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • How do you make a new PDF preset in pages?

    I had a very embarrassing pages moment today. A price list for my artwork went out a 10mb when exported from pages at the medium setting. The source images are from the media browser- from my aperture library.
    I know I am an idiot for not checking but I usually make out OK with apple products right out of the box. I tried the reduce file size option but was not nuts about the results. I would like more control over the output ie a custom preset that scales the image down but results in better quality that the 72dpi that the previous method generated.
    I know there is a way but I can not find the relevant thread that i once looked at years ago.
    many thanks

    Mac Help says this about compressing pdfs:
    Compressing a PDF file
    Large PDF files can be difficult to archive or email. Using Preview, you can compress a PDF file so it’s easier to share or store.
    To compress a PDF file:
    Open Preview, in your Applications folder.
    Choose File > Open, select the PDF file to compress, and then click Open.
    Choose File > Save As, choose Reduce File Size from the Quartz Filter pop-up menu, and choose a name and location for the new PDF file.
    Click Save.
    This process compresses the images in the file. The compressed images look the same as the originals when viewed onscreen, but may appear to be of lower quality when printed.
    Further exploration of Help will tell you how to adjust the amount of compression.
    Walt

  • How to generate a pdf file using javascript?

    I would like to generate a pdf file having images in it using javascript. I tried jsPDF but getting some exceptions like
    Uncaught ReferenceError: pageWidth is not defined,
    fail to load pdf document
    Could anyone show me some pointers?
    Thank You
    Rahul

    Here is my code
    var myImg=new Image();
      myImg.src=arrData['employee'][1]['Image'];
      myImg.crossOrigin ="Anonymous";
       var imgData = this.getBase64Image(myImg);
       var doc = new jsPDF();
       doc.setFontSize(40);
       doc.text(35, 25, "Test Image");
       doc.addImage(myImg, 'JPEG', 15, 40, 180, 160);
       doc.save("sample1.pdf");
    I'm receiving the following error at 'addImage' function.
    Uncaught Error: getJpegSize could not find the size of the image
    Could you please help in pointing out where am I going wrong.
    Thank You

  • Generate a PDF doc from binary content.

    Hi folks,
    I have this scenario: File Adapter <- XI -<ABAP Proxy.
    The scenario starts when R/3 runs a report (job scheduled) that invokes an outbound method of ABAP Proxy. Under this outbound method, few parameters are sent to XI, one of them is an xstring. The xstring (binary content) can be a PDF or TXT document, depends of the “doc_format” parameter value.
    I already read some documents and web logs about file format conversions. But my problem is that the XML element is coming in binary (xstring) and I need to generate a new PDF document from that element. All the web logs mention conversion from XML to any other format and not from binary! 
    My idea is to develop a Receiver File Adapter Module. The Module only picks the binary XML element and converts it in a PDF document giving the name and the format that comes into others neighbors elements of XML.
    Anyone knows which classes/methods are needed? Or is there another easy way to do this that am I not seeing?
    Thanks in Advance,
    Ricardo.

    Hi all,
    First, thank you all for the quick replies.
    To be clear, I have a binary stream that I want to convert into PDF format and not XML to PDF. So, like I said before, the SDN web logs only mention conversions from XML to PDF and not binary stream to PDF or even others formats. Using XSL I need my source message in XML and that is not the case…
    Venkat, your approach is develop a module to get the binary stream and other module to convert into PDF format, am I right?
    Cheers,
    Ricardo.

Maybe you are looking for

  • How do I get constraints to adjust when scroll bars are shown?

    Hi All, I've got the following page setup, with constraints that causes everything (datagrid, content grid, etc.) to grow and shrink when the user adjusts the size of the window. Now, the problem is, if there are enough controls on the page to requir

  • Creating order in future date

    Hi All, Can we create order for future date, if yes..then what are the settings required for correct delivery date and pricing date to flow Help required Regards Edited by: Anil SD on Jan 3, 2008 9:59 AM Edited by: Anil SD on Jan 30, 2008 7:43 AM

  • How does apple know what the fault is with my iphone?

    How does apple know what the fault is with my iphone when sending it to them on apple care. My sleep/ wake button seems to be stuck so I sent in for a repair on the website and they sent me a apple care box and said send it back but I Carnt remember

  • Live Cache DR Setup

    Dear All, I am planning to make a standy server for Livecache for my SCM system. Server Details is as follows: Scm : SAP SCM 5.10 Lc version :KERNEL 7.7.04 BUILD 037-123-218-794 DBM Server : DBMServer 7.7.04 Build 037-123-218-794 O/s : AIX Database :

  • How do i fix this error and install adobe reader?

    The error is : Windows installer does not permit updating managed advertising products. At least one feature of the product must be installed before updating the update.