Cffunction - Accepting and Returning PDFs in memory

Hello,
This is something that I should probably know by now in my CF career, but up until now I have never thought/had to do this type of thing.
I have defined a couple functions that I would like to handle accepting, manipulating, and returning PDFs in memory. What data types should I be using for accepting and returning the PDF in memory between functions?  I would prefer to stay away from "any" if possible, but let me know if that is the only choice.
<cffunction name="AddMeUhWaddaMak" returntype="any" access="public" output="no">
        <cfargument name="src" type="any" required="yes">
        <cfargument name="name" type="string" required="no">
               <cfpdf action="addWatermark"
                        source="#arguments.src#"
                        name="#arguments.name#"
                         ...>
                     <cfreturn arguments.name>
</cffunction>

Thanks again for the advice.  I was doing a little tinkering around with isPDFObject() just to see how it works and came to another question. See below..
<cfdocument format="pdf" name="test2">
test
</cfdocument>
<cfdump var="#isPDFObject(test2)#"><cfabort>
The result says "NO", even though when I dump out "test2" it shows up as binary.

Similar Messages

  • Condition type FRA1, condition category B and returns item

    When a delivery is not accepted and returned, a new purchase order is created where the field returns item flagged.
    Conditions like ZPB0 becomes a negative value, but the FRA1 not. In our business it is common not to pay the transport costs if the delivery is denied, even more, we expect a credit note also for the delivery costs.
    In the condition FRA1 de condition category = B (delivery costs), which is a must for transaction MIRO.
    When negative delivery costs are entered, SAP gives the error message "negative delivery costs not allowed”. While expecting a credit note with negative delivery costs, we want to have it this way.
    Question: how are other companies dealing with these circumstances? Is it possible -without changing standard SAP- to avoid the error message and be able to proceed?
    Any hint or information is highly appreciated, as we see no more options to solve this issue.
    Bob

    The moment you say it is credit note means you are getting from vendor
    so the condition can't be -Ve
    All the company geeting creadit by soing this only.
    No -Ve condition

  • HELP: I need to link a PDF within PDF and be able to open and return to original PDF

    I have a master PDF and have attached 7 supplemental PDF documents. I created "click here" icons and used the steps below so that the linked document would open. The problem is, once I open the supplemental PDF, it closes the original master. I would like to close the linked document and return to the master view. Is there a way to do this?
    Or is there a way to do this from InDesign? I created master file in InDesign and exported as an Interactive PDF.  I created the buttons and linked them to external files. This works great as long as the master PDF and the links are all in one file, but that is a pain to send to a viewer. Ideally, I want to be able to send the master PDF to a viewer and not have to send a links folder. Is there a way to embed the supplemental PDFs into the master so that they are all combined into one file AND have the ability to use buttons to call up one of the attachments, close, and return to the original?
    Thanks in advance!!

    I want to do the same thing that the original poster of this question wants to do. I haven't worked extensively with Acrobat so am finding by trial and error the several ways PDFs within PDFs can be accomplished. I'm using a trial version of Acrobat Pro X and have experimented with three options.
    1 - I've created a Portfolio and am impressed with what that can do, though I think it may be "overkill" for the current size of my project.
    2 - I've also tried creating this project as an index but discovered that the links I'd created in the original docs didn't work when I moved the index and its contents (keeping the file structure the same). I presume this means the links are absolute? I also don't understand how it is that users search a .pdx file, or how to present what I want to be the original opening PDF of indexed docs.
    3 - I've also thought to create one PDF with attached PDFs, so I'd like to have you expand on your comment about creating a master document and attaching documents to it.
    The specifics of my project are these: I have created a master directory that contains approximately 120 links. Most of the links are repeated three times (users can find in the directory the item they need in three different ways: alphabetically, by application, or by module; hence each item listed once in each of three categories). I want to make that directory the "master" PDF that users open first, and then locate within that PDF the 5-8 PDF documents that contain all of the places to which the directory links. I want the "master" directory to be self-contained and completely "portable" as far as all of the documents and links are concerned so that when I make the PDF available from our website users can open the master from there or copy it and have all of the docs they need with all of the links intact. I think I prefer that all docs open in new windows, since returning to the original doesn't seem very user friendly in Acrobat (I like the tabs feature in FoxIt when multiple PDFs are open...).
    I'd like an opinion about the best way to accomplish what I need to do, and am also wondering whether there are other options I am unaware of. BTW, the reason we've decided to document this whole project in PDFs rather than HTML is because this project contains a big number of tables, which do not look consistent across various browsers (i.e., most of our tables look fine in IE and Firefox, but awful in Google Chrome...). In researching my issue on the Acrobat Windows forum I see that rendering tables in Acrobat is also an issue that seems to be unresolved.
    Thank you!

  • Submit  ALV report in Background & exporting list to memory and return

    Dear all,
    I created one Z program (ZPROGRAM2). 
    Here i use SUBMIT ZPRORAM1_ALV exporting list to memory and return.
    call function 'LIST_FROM_MEMORY'.
    call function 'TABLE_COMPRESS' .
    ZPRORAM1_ALV output i send mail.
    This all are working in foreground.
    If i schedule ZPROGRAM2 in background. that SUBMIT ZPRORAM1_ALV statement not working.
    Please give me the Solution.
    Thanks,
    Durai.V

    It is because of the ALV output that you are using. Check the condition sy-batch = 'X' (background processing) and then display a classical report. It will work then.
    Thanks,
    Jayant

  • Submit program exporting list to memory and return in background

    Dear Experts,
    I am using the following code in one of my program to get opening and closing stock of a material.
    SUBMIT RM07MLBD
             WITH MATNR IN LOC_R_MATNR
             WITH WERKS IN LOC_R_WERKS
             WITH DATUM IN LOC_R_DATE
             WITH PA_SUMFL = WL_X
             AND RETURN
             EXPORTING LIST TO MEMORY.
    The program is working fine when executed in foreground. however when executed in background the job is cancelled. I tried to debug in background through SM50 and found that the program is terminated(No short dump but debug screen is closed and i dont see this program running in SM50) when the above code is executed.
    I found in the forum that when an ALV report is submitted in background it does not work. In my case the standard program is producing an ALV list (not ALV grid though).
    How would i avoid this situation because the program i am submitting is a standard program.
    What is the best solution to avoid from background jobs being cancelled when the above code is executed. Is there an alternate way that i can use to submit the program  and get data.
    Thanks in advance.
    Rajesh.

    Hi Rajesh,
    Just excute your standard program with the same input in back ground mode and check
    out put is coming or not .
    If output is not coming search by sy-batch and make the break points there and Ideantify
    the problem.
    When you execute the standard program  in back ground mode If the output is come it should in your Zreport also.
    I tried in my system in background mode also the output is coming for me.
    Thnx,
    Sam.

  • In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    The application auto-saves your input when you close the document.  If you left the document, as you state, the notes/comments should have been saved and should have been visible the next time you opened the document with the Mobile Reader (note that if you are opening the document with another app such as Apple's built in PDF Viewer, things like notes/comments may not be visible).  Also note that if you are doing an Open In... from another app (like Dropbox), the version of the document in Dropbox does not update; only the version of the document in the Mobile Reader is updated.
    Would it be possible to send a video of the problem you are encountering to [email protected] so that we can try to help?

  • Pages 09 Are enterable forms possible? So that I can export to PDF and others can fill in that form and return to me?

    I want to create a membership form (PDF format) and put it on my website for potential members to download. Ideally they can enter their details in the PDF and return it to me via e-mail. How would I do this please?

    No, this capability does not exist in Pages.
    LibreOffice has a forms designer so that you can create in-line, fillable forms. You can then one-button export to PDF. The LibreOffice Writer Guide has an entire chapter assigned to Forms.

  • How to convert Smart Form into PDF format and return the result in BAPI?

    I want to convert a Smart Form into PDF format and return the result in BAPI.
    can anyone tell me how it can be done with related example
    regards
    pranay

    hi,
    smart form to pdf--
    All you have to do is call your SF to get OTF and then concert it to PDF. Works like charm:
    DATA: p_output_options TYPE ssfcompop,
    p_control_parameters TYPE ssfctrlop.
    p_control_parameters-no_dialog = 'X'.
    p_control_parameters-getotf = 'X'.
    CALL FUNCTION v_func_name "call your smartform
    EXPORTING
    output_options = p_output_options
    control_parameters = p_control_parameters
    IMPORTING
    job_output_info = s_job_output_info.
    call function 'CONVERT_OTF_2_PDF'
    tables
    otf = s_job_output_info-otfdata
    lines = t_pdf
    and if u need more u can check below links also
    Check the below links..
    Re: Smartforms to PDF
    Re: smartform (otf) as pdf and sending as email-attachment
    VISIT THIS LINK
    Re: Smartforms to PDF
    PLZ REWARD POINTS IF IT HELPS YOU
    rgds
    anver

  • PDFs that can be filled in and returned

    Firstly I apologise if I have not searched enough to find the answer to this question but I have tried and I need to purchase the correct Adobe Product for what I require.
    I work in the Health Industry and my job entails sending Forms currently in WORD to many different Universities.  The Universities have to fill in those forms and email them back to us.  It is not uncommon for us to send 30-40 forms to be completed per day! 
    The information on the forms are then emailed back to use and ultimately copied into about 20 OTHER different forms which travel throughout the Hospitals to various different departments. 
    As you can see, data integrity is of the utmost, but it is NOT when using WORD.
    What I want to be able to do is Design a PDF form where the recipient can open it, fill it in, and then return the form to us.  We then can extract that information and utilise it in other PDF forms which travel to elsewhere again. 
    Am I right in assuming that this can be done, but the data cannot be accessed unless you utilise a website to do this?  Unfortunately the hospital is not happy about this due to privacy issues.
    Can the forms I create be filled in and returned to US and the data then used without having to access a website?
    If it can, which product should I purchase.  My boss is happy to pay whatever it costs.
    Also, if this helps .... the data obtained on the forms will also be entered into a database down the track (access 2007) to make the entire process automated.  So is there anyone who uses the Adobe product with Access for data captures?
    If you do, what is your process? If you don't mind sharing.
    Thank you in advance
    Kind regards
    Tanya

    You mention several different aspects about forms. With Acrobat 9 you can create forms within Acrobat itself (the form tools are under the tools menu) or with the LiveCycle Designer that is linked from Acrobat under the FORMS menu. There are pros and cons to both and you should probably test both. For your application, you do not need the form itself as I read it, but only the data. Submitting the data in XML, FDF, or other data formats does not require Reader Rights that is only needed to save the form AND data locally (in order to submit the full form or just have the data saved - nice, but not required when the price is considered beyond the 500 limit). You can search for the Reader Rights restrictions in the Acrobat EULA that is available at Adobe.COM (need to do a search). Section 15 indicates the issues. If the form is not submitted electronically, there is no limit as I read the EULA. Thus printing and sending in by mail should be fine. If it is submitted electronically, then the saving feature is an issue and subject to the limit. These are my opinions from reading the EULA and you really need to read it yourself, carefully.
    The data can be ported to several different database formats as I understand it.
    Data integrity and privacy can be an issue. The best way to handle this is by mail as you suggested (printing the form and submitting). However, it should be reasonable to submit to a web script that handles the processing of the data. I am just not sure how private that is and would have to defer to other IT folks. An e-mail submission would definitely not meet the need. However, your need and volume suggests that a web script is the way to go for your application. You may be able to find some comments here on the security of the web submission (I faintly remember some comments related to that), but definitely e-mail submission should be forgotten for the same reason it is a problem with WORD.
    In the meantime, you might consider downloading the trial of Acrobat 9 Pro (a comparison of the versions, Std, Pro, and Pro Extended, is under the Adobe Store. You have to enter the purchase part of the site, but don't have to purchase to see the comparison). I suggest you try forms in both Designer and directly in Acrobat to determine your own viewpoint of the pros and cons. Once you go to Designer, the form can no longer be edited in Acrobat. Also check the different data submission types that are available. Even an HTML data format is available if that is more convenient for you to parse and use in other applications. The data base options that were suggest might meet your needs well.
    You have your work cut out for you. I think you will find that PDFs will meet your need, at least a lot better than WORD. Good luck.

  • Need help in Exporting list to memory and return in background

    Hello Experts,
    I have a program which reads data from mc.9 by exporting list to memory.When I run it in foreground its working fine . However if I schedule it as a  background program it is unable to get list from memory.
    Any help will be appreciable.
    Thank you

    Hi jayaram,
    I tried to do as you said. Its creating spool request and status to completed (sm37 instead of sm36 bcoz i don't hv authorization in production server). Now I didn't see any errors in job log. But data coming to ztable is as usual ( all are ZEROS).
    Hey when i tried doing it as below
      SUBMIT RMCB0300 WITH SL_WERKS-LOW = P_WERKS
                      WITH SL_LGORT = 'W001'
                      WITH SL_SPMON-LOW = P_FPERIOD
                      WITH SLV_NO = 'MC.9N'
                      WITH SL_SPMON-HIGH = P_FPERIOD EXPORTING LIST TO MEMORY AND RETURN .
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          LISTOBJECT = LISTOBJECT
        EXCEPTIONS
          NOT_FOUND  = 4
          OTHERS     = 8.
      IF SY-SUBRC <> 0.
        if SY-SUBRC = 4.
          message 'not_found' type 'i'.
        ELSEIF SY-SUBRC = 8.
          message 'others' type 'a'.
        endif.
      ENDIF.
    I found that my job with completed status but with in job log i found error of type I means that the error is with notfound type in exceptions.
    Hey sorry for the postings may be due to some issues Im unable to see what i have replied in postings that's why im posting repeatedly..
    Edited by: Praveen Pathuri on Apr 23, 2009 7:30 AM
    Edited by: Praveen Pathuri on Apr 23, 2009 7:55 AM

  • Adobe Reader 8 open pdf very slow and used lots of memory

    I use the Adobe Reader 8 to open a pdf(the pdf size not bigger than 100k)
    but when i open it, it take long time to load it and use so many memory,
    also, i do not have this problem on using adobe reader 7, would any one know the reason?
    Thx for everyone.

    Alright, i know, you can't bare to part with it, you need it, etc.etc...
    try here, its an adobe reader speed up program
    http://software.bootblock.co.uk/?id=adobereaderspeedup
    It's a bit old though.
    Also, do you have the stupid adobe startup program for reader running? This speeds up the loading of adobe reader while simultaneously slowing down your whole system. Great tradeoff.
    Get foxit!
    Adobe sucks!

  • Yesterday I've bought the old mac book air, will Apple accept a return and replace it with the new one?

    Yesterday I've bought the old mac book air, will Apple accept a return and replace it with the new one?

    Hi micjhal,
    Call them up! If you look on your receipt it'll indicate you have 14-days to return it (if bought at a retail store) and 30-days if bought through the online store.

  • Submit and return exporting list to memory is not working in background

    Hi gurus,
    i am using submit statement and exporting list to memory. it works fine in foreground and i am able to get the output. but in case of background , it is not exporting the list.PLease help me on this.
    Thanks and regards,
    Rajeshwar

    Hello Rajeshwar,
    This is a duplicate thread. You have a thread with the same question.
    [list_to_memory is not working in background;
    Jayant Sahu

  • HT201210 I've updated to the latest IOS version. I am now asked to accept the conditions. I click on accept and am always returned to the accept window. What am I missing

    I've updated to the last IOS version and am now asked to accept the conditions. I click on I accept and am constantly referred back to the acceptance window. What am I missing? TIA

    Hi Vulcan37!
    I have some troubleshooting steps for you that can help you resolve this issue. First, you will want to try just performing a reset on your phone by following the instructions in this article:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    You may also need to make sure your Safari settings are set for accepting cookies. More information on this can be found here:
    Privacy and security - iPhone User Guide
    http://help.apple.com/iphone/7/#/iphb01fc3c85
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • I can no longer print to the 3 Canon printers on my local area network. The print dialog box states that the print file is accepted and the job is printing, but the files never print. Everything worked when the computer and printers were initially set up.

    I can no longer print to the 3 Canon printers on my local area network. The print dialog box states that the print file is accepted and the job is printing, but the files never print. Everything worked when the computer and printers were initially set up.

    There may be some security issues related to the USPS PDFs.
    http://www.certified-mail-envelopes.com/signatures-usps-certified-mail-return-receipt-requested
    I can't help with the scan/print problem. You seem to have done everything I would try.
    I don't know if maybe using a registry cleaner would help.
    John Hoffman
    Conway, NH
    1D Mark IV, Rebel T5i, Pixma PRO-100, MX472

Maybe you are looking for