Documents object to PDF

Hi All
I want to convert my documents object with its template to pdf to include in a mail. Is there any way to do this, help will be appreciated.
Thanks

Hi Pieter,
You can use the Crystal runtime to export a report directly to a PDF file.
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;
ReportDocument doc = new ReportDocument();
doc.Load(@"C:\Reports\PurchaseOrder.rpt");
doc.SetDataSource(po);
ExportOptions exportOpts = doc.ExportOptions;
exportOpts.ExportFormatType = ExportFormatType.PortableDocFormat;
exportOpts.ExportDestinationType = ExportDestinationType.DiskFile;
exportOpts.DestinationOptions = new DiskFileDestinationOptions();
// Set the disk file options.
DiskFileDestinationOptions diskOpts = new DiskFileDestinationOptions();
((DiskFileDestinationOptions)doc.ExportOptions.DestinationOptions).DiskFileName = @"C:\PDF\PurchaseOrder_" + poNum + ".pdf");
doc.Export();
The variable po is a .Net DataSet that I'm using to pass data in to my report (but other connection methods can be used without affecting the export to PDF).
Kind Regards,
Owen

Similar Messages

  • Word 2010 Document with embedded pdf objects

    Is it possible to convert a word 2010 document with embedded pdf object into a PDF without loosing the functiuonality of double clicking on the Acrobat icon and opening the (embedded) document?
    Thank you for your help.

    Pretty sure that the PDF will contain exactly what you'd get if you printed the Word document. There is no promise or expectation that objects will be "live".

  • Conversion of a Word 2010 Document with inserted objects to pdf with adobe acrobat XI

    Hi,
    I am working in a Wrod document with inserted objects such as ppt files, word documents and even pdf documents. you open the word document, push in the object and then the inserted file opens. I have converted it to pdf with one button click and the index works, that's to say, you press in the index and you go to the section selected. However the inserted objects are images and you can no open them.
    Do you know how to keep the inserted objects????
    Thanks

    Pretty sure that the PDF will contain exactly what you'd get if you printed the Word document. There is no promise or expectation that objects will be "live".

  • How can I convert a pages color document to a PDF Black and White doc.

    How can I convert a pages color document to a PDF Black and White doc.  Or, covert the color to B&W in a new doc?

    > How can I convert a pages color document to a PDF Black and White doc.  Or, covert the color to B&W in a new doc?
    The general idea is that you colour correct photographs once, archive, and convert with or without colour changes. The archived photograph is unchanged - or we would be colour correcting the same photographs again and again and again.
    If you have a photograph with a corrected exposure, you can open the photograph in the Apple ColorSync Utility, apply a colour space conversion to a grayscale appearance using the preinstalled ICC profile, save the photograph under another name, and place that in your pagination.
    If you have a paginated document with corrected exposures, and any such non-scalable bitmap or scalable spline graphics as you have chosen to add, you can render the pagination as a whole to PDF through the same ICC profile, carrying out the same colour space conversion on any and all objects.
    Caveat: If you intend the pagination for certain processes, in particular offset lithography, then you are probably  expected not to render the type to grayscale, but rather to render it to single ink solid black. No software can determine what printing process you intend, you have to understand a bit about printing, and how to set up general colour space conversions in software. Ask your prepress provider, and if the answer is not prompt and proficient, pick another provider.
    /hh

  • Why is the footer blurry when I convert my document to a PDF?

    When I am viewing my document in Pages (using the Club newsletter template) my logo in the footer looks fine.
    However, when I convert the document to a PDF and then view it as a PDF, the footer looks blurry, as though there are two of them.
    I've tried deleting and repasting and using a different format for the logo (e.g., jpg, png), and nothing seems to work.  Could it be a sizing issue?  (obviously I have to shrink my logo quite a bit to get it to fit into the footer....)
    Help appreciated!
    Thanks!

    In your version of Pages, I went into layout mode, selected the footer, and enlarged it enough to cram a 180 dpi 1024x768 image into a thumb-sized image. In the Wrap Inspector, I selected make background objects selectable, and enabled in background. I turned off Object causes wrap.
    I then chose Format > Advanced > Move Object to Section Master, and exported to PDF Best. At 400% enlargement in Preview, the image and footer looked normally sharp.
    Here is a screen grab of that PDF footer image at 400%.
    OS X 10.9.3

  • Problem invoking short-lived processes involving Document object

    I have two LiveCycle instances on two different server environments(Dev and Test). I have a few common short-lived processes and forms. All these processes involve Document objects. These processes run fine on one environment(Dev) and have problem in the other(Test) for the same input parameters. Input parameters are Document(PDF) objects. I see this error when I invoke a process which has RenderPDFForm activitity in Test environment.
    java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!
                    at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commit(TransactionImp le.java:223)
                    at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:501)
                    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:411)
                    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
                    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
                    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
                    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
                    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
                    at org.jboss.ejb.Container.invoke(Container.java:960)
                    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
                    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
                    at $Proxy380.doRequiresNew(Unknown Source)
                    at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:143)
                    at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
                    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
                    at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
                    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
                    at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
                    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
                    at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:188)
                    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
                    at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
                    at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
                    at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:121)
                    at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
                    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.invoke(AbstractMessageReceiv er.java:329)
                    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invokeCall(SoapSdkEndpoint. java:139)
                    at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapSdkEndpoint.invoke(SoapSdkEndpoint.java :81)
                    at sun.reflect.GeneratedMethodAccessor826.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:597)
                    at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
                    at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
                    at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
                    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
                    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
                    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
                    at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
                    at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
                    at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                    at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at com.adobe.idp.dsc.provider.impl.soap.axis.InvocationFilter.doFilter(InvocationFilter.java :43)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at com.adobe.idp.um.auth.filter.CSRFFilter.doFilter(CSRFFilter.java:41)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:182)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java: 157)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:583)
                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                    at java.lang.Thread.run(Thread.java:662)
    I tried comparing the configuration settings for these 2 environments and everything looks the same between the two environments except Health Monitor.
    Total Physican Memory, Free Physican Memory and Free Swap Space. These parameters are vary big between the two envs. Other parameters look close.
    Is this difference causing the process to fail in Test environment ? If yes, are there any other parameters that I can adjust to fix the problem with the process ?
    If no, what could be causing the process in Test env to fail ?
    Any ideas in this direction would be greatly appreciated.
    Thanks,
    Jyothi

    I am modifying the correct httpd.conf file on the server, it just doesn't seem to work. - If I put the rewrite rules in the <Directory /> the rewrite works but it adds /Library/WebServer/Documents to the URL.
    I also tried putting the rewrite rules in <IfModule mod_rewrite.c> but that did not work either.
    mod_rewrite is enabled and running on the server.
    I will post the rewrite rules again in the code brackets. Sorry for the long post. - If some one can try them out on their Leopard Server to see if they can get them to work, it would be much appreciated. Again, these work on my Leopard Client but I can't get them to work on Server.
    -- The httpd.conf file posted above is just the default conf file found in /private/etc/apache2/
    <code>
    RewriteEngine On
    Options +FollowSymLinks
    RewriteRule ^(.+)/$ http://%{HTTP_HOST}$1 [R=301, L]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.php(.*)\ HTTP
    RewriteRule (.+)\.php(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.asp(.*)\ HTTP
    RewriteRule (.+)\.asp(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.aspx(.*)\ HTTP
    RewriteRule (.+)\.aspx(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.htm.(.)\ HTTP
    RewriteRule (.+)\.htm.(.)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.cfm(.*)\ HTTP
    RewriteRule (.+)\.cfm(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.bak(.*)\ HTTP
    RewriteRule (.+)\.bak(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\.inc(.*)\ HTTP
    RewriteRule (.+)\.inc(.*)$ $1$2 [R, L]]
    RewriteCond %{THE_REQUEST} ^GET\ ([^\?]+)\..(.)\ HTTP
    RewriteRule (.+)\..(.)$ $1$2 [R, L]]
    <code>

  • "Name Dictionary" not found in "document catalog" of PDF

    Hi All,
    I am working with a PDF parser and while parsing a PDF file I found that while reading document catalog of PDF, the "Name Dictionary" which I got is not present in PDF file but When I updated to Adobe Reader X it seems to be working fine.
    So, I decided to check some of the other PDF viewers like Sumatra PDF, Nitro PDF & Evince to open the same fine in them and I found that all of them reported that the file is broken.
    The PDF code for document catalog is as follows:
    44 0 obj <>/Names 53 0 R/Metadata 17 0 R/AcroForm 52 0 R/Pages 41 0 R/NeedsRendering true/StructTreeRoot 34 0 R/Type/Catalog>> endobj
    Here '/Names' tag has value '53 0 R' which is not present in file So, my question is how to handle this kind of error?
    Thanks,
    Pankaj

    Hi Pankaj,
    the PDF reference sais:
    An indirect reference to an undefined object shall not be considered an error by a conforming reader; it shall be treated as a reference to the null object.
    EXAMPLE 2
    If a file contains the indirect reference 17 0 R but does not contain the corresponding definition then the indirect reference is considered to refer to the null object.
    This info could be found in the PDF 32000-1:2008 document 7.3.10 (Indirect Objects).
    Cheers,
    Jan

  • Xml document converting to pdf

    Hi,
    I have a question regarding the convertion of xml document to pdf document.
    Below is the scenario.
    I have an xml document stored in the table in a CLOB format. I would like to convert the xml document stored in a table to pdf document and display in a Web browser.
    I have written the stylesheet to convert the xml document to the xsl fo(XSL Formatting object xml) type document. I need to apply FOP Processor to convert into pdf document.
    How do i do that in PL/ SQL ?
    Any thoughts ??

    1. Generate a XSL-FO document by applying an XSLT to the XML document in the database.
    2. Convert the XSL-FO document to a PDF document.

  • Document type for PDF

    Hi Gurus
    I have created a document by using a existing document type and trying to print this document in the production order, but somehow its not printing, whereas if i use the other document type for Excel then i uploaded then i attached excel instead of PDF then this excel printing on the production order. 
    I believe there is something wrong with the existing PDF document type i have been using. Please suggest me the configuration required to print the PDF file in the production order.
    This is very generic process nothing complex involved to print the PDF.
    Please suggest.
    Thanks,
    Quantum.

    Hi
    I could not find define workstation application in network in SPRO, but there is only define work station application. Would you give me in detail the exact thing you refering to.
    Here i am not using DMS module, but wanted to Manage a document system for the production order by creating or assigning a document.
    SO currently i have created a Document in CV01n and assigned to Material master object, which is very simple process. But i cannot print a PDF file out of the document type i am using now. Current Document type is supported to PDF.
    But I can print excel file with the other document type.
    Please suggest what exactly the changes required in the document type, Or give me a details how to create a Document type with PDF file.
    Thanks,
    Quantum.

  • Help bring a multipage scanned document (TIFF) in PDF format using XML Publ

    Help bring a multipage scanned document (TIFF) in PDF format using XML Publisher.
    In the generated XML file data into BLOB field is, but their XML Publisher can not handle.
    If the output TIFF, multipage PDF file in the report, the report prints a blank.
    <fo:instream-foreign-object content-type="image/tiff"> <xsl:value-of select=".//FILE_DATA"/>
    If the output JPG file to a PDF report, all displayed perfectly.
    <fo:instream-foreign-object content-type="image/jpg" height="9 cm" width="12 cm">
    <xsl:value-of select=".//FILE_DATA"/>
    Thanks

    It seems that these error messages MOD_OC4J_0184 etc are associated with some sort of timeout.
    My problem finally solved - see my comments at:
    Re: FOP
    I would like to see the PDF format using FOP docs made clearer that 2 http servers are involved in this process, one serving htmldb pages and the other oc4j stuff.
    Is it possible to do the PDF format using FOP with only the htmldb http server??
    Cheers
    KIM

  • Documentation for the Acrobat Document Object Model

    Hello
    I'm trying to move my first steps in this field, I hope you can bear with my naive questions.
    I'm trying to find the documentation for the Acrobat Document Object Model. To my surprise a search in the forum's archives was unsuccessful.
    I remember downloading out of curiosity a few PDFs from Adobe about their implementation of JavaScript in Acrobat, one precisely concerning ADOM (but I could be wrong as it was a few years ago and I'm getting old): are those documents a thing of the past?
    Thank you very much.
    Giordano

    Have a look here:
    http://www.adobe.com/devnet/acrobat/javascript.html
    The link there is for the version 9 reference, which is usually good enough,
    but if you want the latest one (in PDF form), you can find it inside the
    Acrobat X SDK package, here:
    http://www.adobe.com/devnet/acrobat/sdk/eula.html

  • Resolving Document Object Identifiers (DOI)

    One of the bigger pushes in Academic journals has been to identify each article with a Document Object Identifier (DOI) typically in the format doi:10.XXXX/journal.JournalIdentifier.DocumentIdentifier The DOI is then associated with a URL to the publication (usually a PDF file). Using the DOI instead of a URL to identify the publication, it allows a journal to change the URL of the document without changing everywhere the link to the document is published.
    So I'm trying to find a solution to quickly resolve DOIs in Safari. Normally I goto the doi web site and enter in the doi at the bottom of that linked page. I would like to make this process simpler.
    Does anyone know of a Safari plug-in or some other method to make resolving DOIs much quicker?
      Mac OS X (10.4.9)  

    added Material BOM as object link for a particular document type. But I am unable to attach any Material BOM as the Material BOM screen in the object link appears greyed out.
    Shynu
    This is standard SAP behaviour. You can't do object lining to BOM from CV01N/ CV02N.
    To attach documents to Material BOMs, you'll have to do it either from CS01/ CS02.
    I hope this helps.
    Regards
    Amaresh Makal

  • When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?

    When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been.  How do I do this without the document changing?
    I need to be able to send it to a PC in order to print it.

    Hard to say what is happening without examining the file.
    If you like click on my blue name and email me both the .pages file and the the .pdf you have made from it.
    Peter
    ps It would help to say what version of Pages you are using and on what you are running it. iOS or Mac and what version.

  • How to use change document object ?

    Friends,
    I am learning to use the Change Document object for one of my Z table. I have created a change doc object using SCDO. I have now written a test report in which i am issuing the SELECT statement for fetching old and new values from the Z table and passing them to the FM generated by SCDO.
    I am not able to see the changes in the CDHDR and CDPOS tables. I am doubtful abt the values being passed to the FM. Here are the values i am passing:
    CALL FUNCTION 'YTEST_WRITE_DOCUMENT'
      EXPORTING
        objectid                      = 'YTEST'
        tcode                         = 'se38'
        utime                         = sy-uzeit
        udate                         = sy-datum
        username                      = sy-uname
      PLANNED_CHANGE_NUMBER         = ' '
       OBJECT_CHANGE_INDICATOR        = 'U'
      PLANNED_OR_REAL_CHANGES       = ' '
      NO_CHANGE_POINTERS            = ' '
       UPD_ICDTXT_YTEST               = 'U'
        n_ztest_cle                   = wa_ztest_cle
        o_o_ztest_cle                 = o_ztest_cle
      UPD_ZTEST_CLE                 = ' '
      tables
        icdtxt_ytest                  = itab_cdtxt.
    Is the object ID the same as the Change Document Object name ??
    Please help.
    Thanks,
    Ram.

    Well, i found a way out for the problem i was facing. I was not setting the "UPD_ZTEST_CLE " FM parameter. When i set it to 'U', the changes got reflected in the CDHDR and CDPOS tables.
    Can i reward myself as i solved this by myself ???

  • How can I digitalize a document text in PDF and export it to WORD?

    Anthony
    How can I digitalize a document text in PDF and export it to WORD?

    If you already have a PDF document, ExportPDF can help you with this task. https://www.acrobat.com/exportpdf/en/convert-pdf-to-word.html
    On the other hand, if you have a physical document, you'll need to scan it into a PDF document first.
    Depending on what you need to do you may require different tools & services, so please help us out with more details.
    Vlad

Maybe you are looking for