Get current PDF path when filename has unicode chars

How do i get the current PDF path if the filename has unicode characters
Thanks
Swapneel

How are you getting it now that it isn't working?

Similar Messages

  • How do I get the full path and filename of the current document?

    I'm writing a format plug-in. How do I obtain the full path and filename of the current image (document) from within my plug-in? Any help would be greatly appreciated!

    I actually just figured this out. For anyone else who would like to know, check out the propetizer sample code in the photoshop sdk. It makes a "filter" plug-in that just spits out all the properties of the document you could ever want to know about. The function I used to get the full path and filename of the current document is PIGetDocumentName(). I hope this helps someone eventually...

  • Get current RID path from file upload in KM

    Hi all,
    I wrote an customized upload application using upload ui element.
    The question is , how can I get the current RID Path when I trigger the WDJ upload action ?
    Thanks for your help. please.

    Hi,
    Here is some of examples from WDJ for uploading the files, please go thr below link i hope it will help you
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?QuickLink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/WDJava/KmuploadusingWebdynproapplication
    Thanks,
    Sreeni.

  • Getting blank pdf files when I try to view them on computers other than my Mac

    I need some assistance.  I keep getting blank pdf files when I try to view them on anything other than my Mac.  I create them in either Illustrator or InDesign and I make sure that I select High Image Quality.  I can view them just fine in my Acrobat reader, but the minute I send them out to others or view them on a PC with Acrobat Reader 7 i can't view them.  I get this message "There was a problem reading this document (111)"  Does anyone know the solution to this problem?

    Many PC users still use older versions of Acrobat or Acrobat Reader. I know some people that absolutely refuse to update beyond Acrobat Reader 4.5, often times, that can contribute. Also if you've run PDF Optimizer and removed all the fonts. That can cause a problem.
    Also, make sure you save pdf's with the .pdf extension. As much as they say the opposite PC's need to see that extension.

  • Customer is getting created multiple tims when it has multiple sites

    Hi,
    I developed customer conversion.
    when I load data through conversion in R12 Customer is getting created multiple tims when it has multiple sites.
    what are the things I have to take care to prevent this.
    Please suggest me If any one has Idea.
    Thanks & Regards,
    Narendra.

    Hi Gabriel,
    Thanks for taking time to reply to my post.
    When one of my collegue giving the print, there is only one spool which is getting created, but when I run the program there are multiple spools are getting created.
    -Pradeep

  • Getting PDF filename with unicode chars

    Hello,
    I'm trying to write a plugin that gets the file path of the current active document. The code looks like this:
    AVDoc avDoc = AVAppGetActiveDoc();
    PDDoc pdDoc = AVDocGetPDDoc(avDoc);
    ASFile file = PDDocGetFile (pdDoc);
    ASPathName filePath = ASFileAcquirePathName (file);
    This works fine for most documents, but for documents with unicode characters in the name each unicode character is replaced with '.' in filePath. For example, if the document is "测试中文关键词搜索!@#$%^&().pdf", then filePath becomes ".........!@#$%^&().pdf". Am I missing something required to get unicode filenames?
    Thanks.

    You were right, the plugin was getting a char* from ASFileSysDisplayStringFromPath. I removed that and added this which seems to have fixed my problem:
    ASText pathText = ASTextNew();
    ASFileSysDisplayASTextFromPath(ASGetDefaultFileSys(), filePath, pathText);
    wchar_t *pathString = (wchar_t*)ASTextGetUnicode(pathText);
    Thank you!

  • Get the absolute path and filename of the file from the command line

    Hi,
    when we run the class we give the command
    java <filename>
    How can I capture the filename given above and get its absolute path inside the
    public static void main(String [] args){}
    args[0] gives me the command line argument after the filename. How do I capture the filename itself from the command line argument and also get that files absolute path
    Thanks

    I don't know of any way to capture the java command input, but there are ways to find out where the application is being run from. (the "absolute path")
    http://forum.java.sun.com/thread.jsp?forum=31&thread=335394

  • Get current swf path

    I'm developing an extension use Extension Builder for Photoshop CS5. I have to use an executable file in my extension. In general, if you use the Adobe Extension Manager to install the extension, the extension's swf file will put to USERPATH\AppData\Roaming\Adobe\CS5ServiceManager\extensions\YOUR EXTENSION NAME.
    However, some time it isn't. And I don't know the reason. My executable file will be copy to the path as same as the swf file. So I want to get the swf file's path.
    In Flex, the File class has two static variables File.applicationStorageDirectory and File.applicationDirectory. But they don't match the swf file's path.
    How can I get the path in runtime? Solution use Flex or Javascript Script is ok.
    Any help will be appreciated. Thanks!

    "panell" <[email protected]> wrote in
    message news:e97o6o$18i$[email protected]..
    > Hi
    > How to get current flash movie path?
    > ex. C:\Movie1.swf? or
    http://www.test.com/Movie.swf?
    myTextBox.text = _url;

  • Stream Output problem when filename has Period( . ) within it in Servlet

    I have this code below that outputs the pdf file from a JSP using a servlet. The problem is if filename has period (.) (Ex. AAA.BBB.CCC.PDF) within it I gey a socket write error, and cant output the pdf file. Can anyone help me with this.
    Thank You
    JSP Code:
    document.write("<object classid=\"clsid:CA8A9780-280D-11CF-A24D-444553540000\" id=\"BravaDTXView1\" width=\"100%\" height=\"100%\"> ");
    document.write(" <param name=\"src\" value=\"/TifPdfDisplay?filepath=<%=sFilepath>\"> ");
    document.write("</object>");
    Servlet Code:
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    request.setCharacterEncoding(Constants.GlobalVariable.CHARSET);
    String sFilePath= (String) request.getParameter("filepath");
    // Read in PDF test file
    File l_file = new File(sFilePath);
    FileInputStream in = new FileInputStream(l_file);
    int length = in.available();
    byte[] pdfbytes = new byte[length];
    in.read(pdfbytes);
    in.close();
    // Send response
    response.setContentType("application/pdf");
    response.setContentLength(pdfbytes.length);
    ServletOutputStream ouputStream = response.getOutputStream();
    ouputStream.write(pdfbytes, 0, pdfbytes.length);
    ouputStream.flush();
    ouputStream.close();
    }

    Hi all,
    I happen to solve the problem myself. The solution is striking simple. Just reduce the image size & bingo!
    Regards

  • Output problem when filename has Period( . ) within it in Servlet

    I have this code below that outputs the pdf file from a JSP using a servlet. The problem is if filename has period (.) (Ex. AAA.BBB.CCC.PDF) within it I gey a socket write error, and cant output the pdf file. Can anyone help me with this.
    Thank You
    JSP Code:
    document.write("<object classid=\"clsid:CA8A9780-280D-11CF-A24D-444553540000\" id=\"BravaDTXView1\" width=\"100%\" height=\"100%\"> ");
    document.write(" <param name=\"src\" value=\"/TifPdfDisplay?filepath=<%=sFilepath>\"> ");
    document.write("</object>");
    Servlet Code:
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    request.setCharacterEncoding(Constants.GlobalVariable.CHARSET);
    String sFilePath= (String) request.getParameter("filepath");
    // Read in PDF test file
    File l_file = new File(sFilePath);
    FileInputStream in = new FileInputStream(l_file);
    int length = in.available();
    byte[] pdfbytes = new byte[length];
    in.read(pdfbytes);
    in.close();
    // Send response
    response.setContentType("application/pdf");
    response.setContentLength(pdfbytes.length);
    ServletOutputStream ouputStream = response.getOutputStream();
    ouputStream.write(pdfbytes, 0, pdfbytes.length);
    ouputStream.flush();
    ouputStream.close();
    }

    Hi,
    Yes my problem is already solved.
    I created a report which creates the sapscript and in my function module I just execute that report.
    So problem solved :-).
    Greetings;
    Frederik

  • Get current PCD path from user context

    Hi expert,
    Anyone has an idea how to get the pcd path of WDJ ? from user context ?
    Thanks for your quick reponse.
    Kr,
    Ben.J.

    Hi Ben,
    I am not quite sure what your use case is here.
    However, have a look at this link:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b4/adbf40b87e0366e10000000a1550b0/frameset.htm
    If it is for navigational purposes, you can use the WDPortalNavigationService.
    Have a look at http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2f72d990-0201-0010-85b0-8d626287dd4d
    - SM

  • How do I get it to work when it has the itunes sign?

    How do I get my iPod touch to work when it has the itunes sign on it?

    Please read Appendix B.
    There have been some problems accessing pages on the Apple web site.  If the hyperlink gives you a "We're sorry" message, try again.

  • How to get current process version when photos imported?

    I have Lightroom 5 but my photos are still imported with the old process version (2010)  How can I get the current process version (2012) to be applied automatically on my imported photos?

    Hi Andreas,
    Did you ever get an answer to your problem?
    I am facing the same issue now and i cannot get a lead.
    Thanks,
    Dimitris

  • File Input can't get full file path when user choose to upload it

    i saw the solution which many used it to return the file path,
    at this link:
    https://bugzilla.mozilla.org/show_bug.cgi?id=143220
    comment#40 and #50
    but they don't want to hold it to use it later, i want that, i can't hold the full file path in my hand and set it to a variable to use it later, i have to use only javascript DON'T Applets. and i use FireFox 3.6.3 or later version.
    Please, what can i do ?....can any one help me .... ?
    thank you an advance.....
    == This happened ==
    Every time Firefox opened
    == always ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.0 (KHTML, like Gecko) Chrome/6.0.408.1 Safari/534.0

    thank you for reply
    i saw this links and already sent to this group, and i'll more search again, But i found that any change in user.js the about:config don't see, may my system can't feel with user.js ?
    e.g : i changed user_pref("javascript.enabled", false);
    but it still see it true.
    what is the wrong in your opinion sir ?

  • HT204053 How do I get into my IPad when ICloud has not been used for 11 weeks and will not let me into my IPad to Backup?

    Apple Support does not seem to be available here in Mexico...given phone numbers don´´t work.  No local Apple Store.  Meanwhile my IPad refuses to open, even allow me to connect to WiFi until I update my ICloud...which can´t be done till I´m connected to WiFi...chicken and egg story.

    Welcome to the Apple Community.
    You might try a forced shutdown to begin with, hold down the top and home buttons together until the device shuts down, then restart it.

Maybe you are looking for

  • File path to metadata

    Hi, Anyone knows if it´s possible to set the file path of an image to it's metadata keyword field using a script in Bridge? Thank you!

  • SRM PO not updated with BBP_PD_PO_UPDATE

    Hello, I want to updated payment terms from Vendor details to my PO through Z report, I'm following below steps 1. BBP_PD_PO_GETDETAIL 2. BBP_PD_PO_UPDATE - I"m getting e_changes = 'X' 3. BBP_PD_PO_SAVE - Passing current GUD which is updated 4. BBP_P

  • Import/Export tools has not been installed

    Hello, I've isntalled client of Designer 6i rel.2 The whole installation has passed correctly up to the moment when the installer for 8i import/export tools has to be invoked (the setup write that install tool will be run to install 8i i/e tools and

  • Anybody please help

    hi sd gurus anybody  please send the down payment configuration

  • How do you set up the alert for FaceTime with sound

    How do you set up the alert for FaceTime with sound?