Latvian Language support for generated PDF's with FPDF module for PHP

Hello !
I have a problem with Adobe Reader for Android. I am working with online PDF creation with PHP module named FPDF.
With FPDF module for PHP you can create PDF's online.
The problem is that - when generated PDF appears on phone it doesn't show Latvian language ( cp1257 or  ISO-8859-13 for example ). For example - "ŗķļņž" and "ŖĶĻŅŽ" is shown with other symbols.
However opening the same file with standart app "Polaris Office" - the text is show as it used to be, without problem.
Strange bug, that i can't fix from PHP ( Tried a lot of decodes and encodes ). Also i have saved PHP file with different encodings - nothing helped.

You might ask about this in the regular forum. There are several form experts there that may be able to help you.

Similar Messages

  • Writing a java program for generating .pdf file with the data of MS-Excel .

    Hi all,
    My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
    I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
    My Program is:
    * Created on Apr 13, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    package forums;
    import java.io.*;
    import java.awt.Color;
    import com.lowagie.text.*;
    import com.lowagie.text.pdf.*;
    import com.lowagie.text.Font.*;
    import com.lowagie.text.pdf.MultiColumnText;
    import com.lowagie.text.Phrase.*;
    import net.sf.hibernate.mapping.Array;
    import org.apache.poi.hssf.*;
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hssf.usermodel.*;
    import com.lowagie.text.Phrase.*;
    import java.util.Iterator;
    * Generates a simple 'Hello World' PDF file.
    * @author blowagie
    public class pdfgenerator {
         * Generates a PDF file with the text 'Hello World'
         * @param args no arguments needed here
         public static void main(String[] args) {
              System.out.println("Hello World");
              Rectangle pageSize = new Rectangle(916, 1592);
                        pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
              // step 1: creation of a document-object
              //Document document = new Document(pageSize);
              Document document = new Document(pageSize, 132, 164, 108, 108);
              try {
                   // step 2:
                   // we create a writer that listens to the document
                   // and directs a PDF-stream to a file
                   PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
                   writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
    //               step 3: we open the document
                             document.open();
                   Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
                   POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
                   HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
                   HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
                   Iterator rows = hsheet.rowIterator();
                                  while( rows.hasNext() ) {
                                       Phrase phrase=new Phrase();
                                       HSSFRow row = (HSSFRow) rows.next();
                                       //System.out.println( "Row #" + row.getRowNum());
                                       // Iterate over each cell in the row and print out the cell's content
                                       Iterator cells = row.cellIterator();
                                       while( cells.hasNext() ) {
                                            HSSFCell cell = (HSSFCell) cells.next();
                                            //System.out.println( "Cell #" + cell.getCellNum() );
                                            switch ( cell.getCellType() ) {
                                                 case HSSFCell.CELL_TYPE_STRING:
                                                 String stringcell=cell.getStringCellValue ()+" ";
                                                 writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                 phrase.add(stringcell);
                                            // document.add(new Phrase(string));
                                                      System.out.print( cell.getStringCellValue () );
                                                      break;
                                                 case HSSFCell.CELL_TYPE_FORMULA:
                                                           String stringdate=cell.getCellFormula()+" ";
                                                           writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                           phrase.add(stringdate);
                                                 System.out.print( cell.getCellFormula() );
                                                           break;
                                                 case HSSFCell.CELL_TYPE_NUMERIC:
                                                 String string=String.valueOf(cell.getNumericCellValue())+" ";
                                                      writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
                                                      phrase.add(string);
                                                      System.out.print( cell.getNumericCellValue() );
                                                      break;
                                                 default:
                                                      //System.out.println( "unsuported sell type" );
                                                      break;
                                       document.add(new Paragraph(phrase));
                                       document.add(new Paragraph("\n \n \n"));
                   // step 4: we add a paragraph to the document
              } catch (DocumentException de) {
                   System.err.println(de.getMessage());
              } catch (IOException ioe) {
                   System.err.println(ioe.getMessage());
              // step 5: we close the document
              document.close();
    My Input from MS-Excel file is:
         Planning and Tracking Template for Interns                                                                 
         Name of the Intern     N.Kesavulu Reddy                                                            
         Project Name     Enterprise Sales and Marketing                                                            
         Description     Estimated Effort in Hrs     Planned/Replanned          Actual          Actual Effort in Hrs     Complexity     Priority     LOC written new & modified     % work completion     Status     Rework     Remarks
    S.No               Start Date     End Date     Start Date     End Date                                        
    1     setup the configuration          31/01/2005     1/2/2005     31/01/2005     1/2/2005                                        
    2     Deploying an application through Tapestry, Spring, Hibernate          2/2/2005     2/2/2005     2/2/2005     2/2/2005                                        
    3     Gone through Componentization and Cxprice application          3/2/2005     3/2/2005     3/2/2005     3/2/2005                                        
    4     Attend the sessions(tapestry,spring, hibernate), QBA          4/2/2005     4/2/2005     4/2/2005     4/2/2005                                        
         The o/p I'm gettint in .pdf file is:
    Planning and Tracking Template for Interns
    N.Kesavulu Reddy Name of the Intern
    Enterprise Sales and Marketing Project Name
    Remarks Rework Status % work completion LOC written new & modified Priority
    Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
    End Date Start Date End Date Start Date S.No
    38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
    38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
    2.0
    38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
    3.0
    38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
                                       The issues i'm facing are:
    When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
    and the second issue is:
    It is not recognizing the date format..it is recognizing the date in first row only......
    Plz Tell me wht is the solution for this...
    Regards
    [email protected]

    Don't double post your question:
    http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
    /Kaj

  • Using FOP for generating PDF report

    Hi,
    I followed the otn article for generating pdf files uing FOP.
    But I was unable to do so. When I debugged it I found that when the javascript tries to get the XMLFO output from htmldb it gets a blank xml output. I tried to use the exact same url the java script uses ( I got the url by using alerts in java script) I got back an empty xml file.
    I am using htmldb 2.0 on 9.2.0.5.
    Can any one point me to the right direction
    thanks
    amit

    Hi,
    I am using iAS 1.0.2.2.2 (Jserv) it is an Oracle Applications Environment.
    I finished the whole note.
    1. Downloaded the FOP jar files.
    2. Unzipped the jar files in the JAVA_TOP of the Applications environment
    3. JAVA_TOP is already in the class path of the jserv
    4. Added the jsp file to the correct directory
    5. Created the htmdb application with the java script
    6. I put some debugging alerts in the java script
    Now when I click on the pdf link I don't get any output. Because of the debugging statement in the java script I was able to figure out that the java script is not getting any output when it calls back the htmldb for the XML FOP outout.
    I finally tried the URL which the java script uses directly. It came back with an empty xml file.
    thanks
    amit

  • I have created a PDF form with field but for some reason I cant type in them

    I have created a PDF form with field but for some reason I cant type in them

    May be that the text fields are read-only.

  • Duplicates.  I use iTunes match.  When I run exact duplicates, I get duplicates that say uploaded for one and uploaded with a cloud for the other.  Which one do I delete?

    Duplicates.  I use iTunes match.  Two questions:
    When I run exact duplicates on the library on my Mac Air, I get duplicates that say uploaded for one and uploaded with a cloud for the other.  Which one do I delete?
    Some of the duplicates say matched and matched with a cloud.  Same question - which one should I delete?

    I'm not sure I understand the question.
    First I would update your iTunes match.  iTunes match will tell you what is duplicates and then you can just delete them from the library. 
    Second, the course in a situation like this is to delete ONE duplicate and see what happens.  Make sure you have that song backed up somewhere just incase it deletes it completely.  But usually I'd delete one and then see if it deletes both or just the one you pressed. 
    Thirdly, update iTunes match.  It usually does a good job of locating actual duplicates.

  • What's the best method for a nav menu with image rollover for all visitors?

    Hi.
    First, thanks for reading this.
    What's the best method for a nav menu with image rollovers for all visitors, including PDAs? I've used JavaScript rollovers for years because the majority of my customers' visitors use some version of IE (past 7.0) but I'm building a new site that has to display properly for the widest range of visitors imaginable. (I also know that I need to use a more modern method for everyone and this is my excuse to start).
    Finally, using images is critical. I apologize ahead of time to anyone I offend, but I have never seen a nav menu without images that doesn't look just plain terrible.
    Thanks.
    Fitz21

    If you want the best menus possible for Dreamweaver look no further than Project Seven:
    http://projectseven.com/
    They have all kinds of menus and other extensions available for purchase.  Easy to use and they work as advertised.  I personally use Pop Menu Magic and Tab Panel magic myself.  I could go on and on, but I guarantee that if others respond they will echo the same sentiment for Project Seven.

  • Support for multiple pdf document with signature

    I have a question about signatures.
    Does the PDF specification support the combination of multiple pdf documents into one pdf document with the following constraint:
    - each individual pdf document has been signed (by an X.509 certificate),
    - the individual documents can come from different sources, so they have to be 'included' or merged into the final pdf,
    - the final pdf document should not change the signatures of the individual documents.
    So each part of the document should maintain the integrity of the individual components and the signature of the individual comnponents are still valid.
    Does the pdf specification support this feature?
    With kind regards,
    Ernst Jan

    What you want is called a PDF Package (or Portable Collection in the PDFRef) and is new in PDF 1.7. You can try it out with Acrobat 8.
    Leonard

  • Looking for help for sharing pdf files with ipad from mac.  Pages only recognizes text.  What app should I use for file sharing pdf documents?

    Looking for advice on how to share pdf files with iPad from Mac.   Pages seems to only recognize text.   What app is recommended for pdf documents?

    Welcome to Apple Support Communities!
    If I understand your question, you want to read pdfs on your iPad, not create or edit.
    Drag pdf files to the iPad icon in Finder while connected to your computer via the USB cable.
    They will show up in the iBooks application
    (If you don't already have iBooks, it's a free download from the App Store.)
    Once installed, there are two buttons at the top left of the Bookshelf.
    One is Books, the other is Collections.
    Tap Collections, and you'll see Books and PDFs.
    Tap PDFs and you're there.

  • API for generating PDF Form

    How can i generate PDF Form from .NET coding?

    Etymon� PJ is a developer toolkit for parsing, modifying, and creating PDF documents. The main part of the toolkit is a Java class library that provides software developers with an object representation of a PDF document and offers the following features:
    # Read and parse an existing PDF document
    # Extract data from an existing PDF document
    # Modify an existing PDF document
    # Create a new PDF document
    check this link
    http://www.etymon.com/pj/
    Renjith

  • How to save dynamically generated PDF files with proper file name?

    Hi,
    I need to save the pdf file with default name which generated by
    dinamically.
    this is the code i am trying to save by default
    protected void processRequest (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    OutputStream bos = response.getOutputStream ();
    // this returns pdf byte array
    byte  ios[]  = callReport ( reportId_param , fullyQualifiedReportClassName , paramHashMap ) ;
    response.setContentType ("application/pdf");
    // reportId_param and reportName_param supplied from some where
    String docName =  reportId_param + "_" + reportName_param ;
    if( fromDate_req != null && toDate_req != null )
                    String dateStr = fromDate_req + "_to_" + toDate_req ;
                    dateStr = dateStr.replaceAll ( "/" , "_" ) ;
                    docName = docName + "_" + dateStr ;
    // here docName would be like "RP_COM_COLL_01_Message_Details_03_09_2008_to_03_09_2008"
    response.setHeader ("Content-Disposition","inline; filename=" + docName ) ;
    bos.write (ios);
    bos.flush ();
    }the above code produces pdf in browser when calling this URL
    http://localhost:8080/DAD01TN0801027/RWReportServlet
    In browser we can save this PDF by using two ways
    1. File -> Save As
    2. By using Save Icon within the PDF toolBar
    both the actions uses the file name "RWReportServlet" as default instead of using docName
    Can any one help me please
    Regards
    Sakthivel.

    That said, your code is not very efficient. You're storing the complete PDF file in memory. What if the PDF file is fairly large? And what if multiple users download multiple large PDF files simultaneously? Your server would run out of memory. Rather use InputStream instead of a raw byte[]. And preferably buffer it.
    You should also be setting the content-length header by the way.

  • Generating the wsdl with inline schema for the bpel process

    Hi
    When a BPEL process is deployed, we can get the WSDL of the same by logging into the BPEL console, but the WSDL contains the reference to the schema using the namespace. Can we generate the wsdl with the inline schema.
    Suggestions are highly appreciated.
    Thanks

    Hi,
    If the wsdl is referring to a Schema file you won't be able to see the schema definition in the WSDL file itself,for that you have to refer to the deployed jar which contains the XML schema.The default path for the deployed jar is <Oracle_SOA_Installed_Home>/bpel/domains/<domain_name>/tmp/<bpelprocess.jar>
    Otherwise if you have the source project you can always refer to it in JDev.
    Rgrds.

  • Generating pdf output with webhelp look and functionality not like a print documentation

    Hi I have been using robohelp webhelp for our company online help documentation. Can I generate pdf output which has the same look and functionality as that of webhelp, using robohelp??

    Welcome to our community
    While you may certainly generate a PDF that contains the same information, it likely will not look exactly like WebHelp and it certainly will not behave as WebHelp.
    WebHelp is intended for on-line use while the PDF is really intended for printing if one chooses to.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Basic functionality and few steps for how to integrate with PS module

    HI Experts,
    I am very new to C-projects .
    So cn anybody put some light on what c-project is and how cn we integrate wth PS module step by step.
    Thanks In adv.
    Regards
    Ashis

    Hi,
    Please find some details about cProject below.
    Collaboration Projects (cProjects):
    SAP offers SAP Collaborative Project Management (cProjects). cProjects covers the entire range of project management activities in development and consultancy projects, from planning to implementation to project completion.
    Value Proposition
    cProjects supports organizations to grow their project management excellence by
    a) providing solid standalone project management core support
    b) offering a wide range of integration options
    Key Benefits Include:
    a) As single source of truth cProjects provides company-wide transparency of all projects.
    b) Complete functional support for project planning, execution and controlling
    c) Project structuring and scheduling
    d) Clear responsibilities based on project roles
    e) Well-defined handovers through approval protected phase gates
    f)  Effective Collaboration for all project stakeholders through web interface
    g) Effective use of resources through cProjects enterprise resource planning and tracking.
    h) Reduce project time to market and costs by implementing project templates
    i)  Timely and consistent status information based on dashboards, evaluations and alerts
    j)  Rapid access to all project related information in the entire SAP Business Suite.
    k) Governance through comprehensive authorizations
    l)  Tracking project history through status reports and versions
    Integration by Evolution
    cProjects supports organizations in evolving their project management maturity by constantly adding enterprise integration capabilities to their project management solutions. Many customers start with cProjects by deploying it in a stand-alone scenario with limited integration. cProjects offers a wide range of integration scenarios to increase project reach and effectiveness. A cProjects implementation growths with our customers.
    Integration Functions Include:
    1)Cross project reporting with SAP NetWeaver Business Intelligence
    2)Detailed Project Costing with SAP ERP Financials and Project System
    3)Enterprise Resource Management based on SAP ERP Human Capital Management
    4)Business object integration to the SAP Business Suite for example materials or sales orders
    5)Portfolio integration including strategic resource management with SAP xApp Resource and Portfolio Management
    6)Partner collaboration with SAP Collaboration Folders
    7)Enterprise Portal Deployment and Collaboration Room integration
    8)Confirmation of time and travel costs with SAP ERP Time and Travel
    9)SAP CRM opportunity management integration
    10)Powerful document management with SAP Document Management and SAP easyDMS.
    11)Early Project Costing with SAP ERP Easy Cost Planning
    Positioning
    Since cProjects birth as development project management for the automotive industry it has emerged to a flexible project management solution for all industries and focused on various project types, including
    new product development and introduction,consulting projects and IT projects.
    SAP cProjects and SAP Project System (SAP PS) are both part of SAP's offering for Project Management. Customers can use them independently or integrated depending on project requirements. If both are used integrated for the same projects cProjects manages project schedule and resources while cost and budget are managed in SAP PS.
    cProject integration with PS module
    With cProjects 4.0 multilevel controlling is possible. For the project type multilevel controlling (either automatic or manual) could be chosen. It can be either for the project elements or the for the project roles. Once you are on the accounting tab and by choosing account assignment you may notice that for every cProjects element a corresponding WBS element getting created in the Project system. We can do costing thereafter for the WBS elements in the Project systems
    Regards
    Award points for useful answer
    Edited by: Yogesh  Pande on Dec 9, 2008 2:02 PM

  • Submit button for online PDF form doesn't work for some users

    Two online forms I've created in LiveCycle Designer 8.2 work fine for me. But when some of my site's users click on the Submit button in either form, it simply flashes and then does nothing. It's a standard Submit button with a Mailto link. The documents are PDF Version 1.7, and I'm using Acrobat Pro 9.4.5 and Reader 9.4. Any suggestions on troubleshooting would be great.

    Has this form been enabled with Form Rights for Reader.  If the entire PDF is submitted, then the PDF must be Reader enabled to operate on Reader. 
    Another issue is that an email submit is entirely dependant on the user's system.  There must be a local email client installed and registered with the system.  Internet email will not work.  This is the most likely issue.  Althougth there are other things that could be wrong.  You might want to consider using the Acrobat.com to distribute your forms.  This method gets around the email issue for most users. 
    Other issues that could cause this problem are the users' version of Acrobat/Reader as well as any kind of funky system/security setup.   

  • How to enable iphone application for multiple iDevices associated with single user for non renewable subscription?

    I am developing an ios application which has non renewable subscription.
    Which algorithm would be best if the very time an authorized user purchase my application after paying charge for it , can download it for other devices assocated with him for free?
    Any help would be appreciated?    
        Thanks in advance
         Neeraj@iDev

    Thanks! I see a potential problem--iTunes must be open on the main(?) other computer for sharing to works, according to some of the documentation. My situation is that daughter 1 grabs the main computer, access iTunes and her account. Then daughter 2 comes into room, screams upon seeing daughter 1 using the iTunes computer.
    I want daughter 2 to calmly walk to computer 2, open iTunes and somehow seamlessly access her iTunes library. In that case, iTunes may be open on computer 1, but not with her library open or her id in force. It might also be the situation that computer 1 does not have iTunes even running at that time, if daughter 1 is on Facebook.
    Can Home Sharing handle this situation?
    Larry

Maybe you are looking for

  • Error download to excel sheet

    Hello, I have a big problem that I don't understand. I have to save data from SAP to Excel file using OLE2 methods. But there is a cell (BJ5) that always shows the same value: 0.000. It doesn't matter the value is sent from SAP. The format of this ce

  • Forms automatically editing in LiveCycle and not Adobe

    I am new to Adobe Acrobat Pro X version. I have created a form in Adobe Acrobat Pro X, saved it as a pdf, closed and reopened the form using LiveCycle to add image fields, saved the form as a pdf, reopened the form with Adobe Acrobat Pro X, tried edi

  • Material not maintained in plant P100

    while adding material using MB1C T-Code i m getting bellow error Material "bicycel" not maintained in plant P100 and if i press again getting another message parameter for plant P100 not maintained in inventory management

  • 10.0.2 any books for dummies?

    Apple instruction assumes too much for me. Any books  for dummies?

  • Practical Differences between types of routines....

    Hi , Which are the practical differences between : 1) a function so as to return a value/data set.... 2) a procedure which defines an OUT parameter so as to return a value/data set....Thanks , Simon