Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintain Tutorial on Wiki #152

Closed
andreasrosdal opened this issue Feb 8, 2019 · 9 comments · Fixed by #841
Closed

Maintain Tutorial on Wiki #152

andreasrosdal opened this issue Feb 8, 2019 · 9 comments · Fixed by #841

Comments

@andreasrosdal
Copy link
Contributor

A tutorial for OpenPDF can be maintained here on the Wiki:
https://github.com/LibrePDF/OpenPDF/wiki/Tutorial

These are some sources for information about how to create such a tutorial:
https://github.com/ymasory/iText-4.2.0/tree/master/www/tutorial
http://web.archive.org/web/20090703162811/http://itextdocs.lowagie.com/tutorial/
#149 and #61.

@Doragon-S
Copy link

Can someone please add a Tutorial for making a Table and Placing it in a specific position in the pdf page? It would be very appreciated.

@sixdouglas
Copy link
Contributor

Hi all,
It's been a long time since I've contributed here, and would be please to help improve documentation or samples.
How can I help you?

@andreasrosdal
Copy link
Contributor Author

andreasrosdal commented Oct 20, 2022

Hi all, It's been a long time since I've contributed here, and would be please to help improve documentation or samples. How can I help you?

https://github.com/LibrePDF/OpenPDF/wiki/Tutorial - This tutorial could be improved, adding more examples of more common use-cases and such.

Pull requests to improve the JavaDoc in the code would be useful.

And Youtube tutorials: ⭐ https://www.youtube.com/watch?v=SZEhv8tpT6U&list=PLFh8wpMiEi8-Yo59DBCasuVi1M29kQrvn&loop=0

@sixdouglas
Copy link
Contributor

What do you think about moving the sample classes to a dedicated maven module, in the same way other projects do?
This way it would be more visible.

@asturio asturio linked a pull request Jan 16, 2023 that will close this issue
@asturio asturio removed a link to a pull request Jan 16, 2023
@asturio asturio linked a pull request Jan 16, 2023 that will close this issue
@asturio
Copy link
Member

asturio commented Mar 8, 2024

Many sample classes are in the pdf-toolbox module. Contributing there is appreciated.

@asturio
Copy link
Member

asturio commented Apr 25, 2024

More and more examples should be added to pdf-toolbox. Additional info may be added by anyone in the Wiki.

@asturio asturio closed this as completed Apr 25, 2024
@backsft
Copy link

backsft commented Sep 5, 2024

not working for bengali font . bengali text is going broken. there is no problem of my font. if anyone tried html to pdf or text to pdf anything let me know . here is the output :
1

bengali font should display like :
2

i have tried all kind of tools over months same result

@sixdouglas
Copy link
Contributor

Hi, @backsft
Are you sure this comment is really related to this issue?
You should probably explain your issue more precisely and if you could provide a sample of code with the font you're using it would certainly be easier to investigate.

@backsft
Copy link

backsft commented Sep 5, 2024

package com.OpenPDFBanglaFontTest.Another;
import com.lowagie.text.*;
import com.lowagie.text.pdf.PdfWriter;

import java.io.FileOutputStream;
import java.io.IOException;

public class HelloWorld {

public static void main(String[] args) {

    // Register TrueTypeFont which supports Hindi
    FontFactory.register("C:\\Users\\kabir\\Desktop\\fonts\\SolaimanLipi.ttf");
    Document document = new Document();
    try {
        PdfWriter.getInstance(document,
                new FileOutputStream("C:\\Users\\kabir\\Desktop\\HelloWorld.pdf"));

        document.open();
        document.add(new Chunk(
                "আমাদের তরুণ বিপ্লবীরা দেশের মানুষের মনে নতুন বাংলাদেশ গড়ার যে স্বপ্ন জাগিয়ে দিয়েছে",
                FontFactory.getFont("SolaimanLipi", "Identity-H",false,14,2,null)));
    } catch (DocumentException de) {
        System.err.println(de.getMessage());
    } catch (IOException ioe) {
        System.err.println(ioe.getMessage());
    }
    document.close();

}

} output came:

output

expected result should be : আমাদের তরুণ বিপ্লবীরা দেশের মানুষের মনে নতুন বাংলাদেশ গড়ার যে স্বপ্ন জাগিয়ে দিয়েছে

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants