{"action":"created","issue":{"url":"https://api.github.com/repos/opensagres/xdocreport/issues/120","repository_url":"https://api.github.com/repos/opensagres/xdocreport","labels_url":"https://api.github.com/repos/opensagres/xdocreport/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/opensagres/xdocreport/issues/120/comments","events_url":"https://api.github.com/repos/opensagres/xdocreport/issues/120/events","html_url":"https://github.com/opensagres/xdocreport/issues/120","id":140120284,"number":120,"title":"whether it is possible to convert odt file containing a field in a format code 128 (font code 128 ) , that it be recognized as a pdf in the barcode (font code 128 )","user":{"login":"NIckPotapovich","id":16979416,"avatar_url":"https://avatars.githubusercontent.com/u/16979416?v=3","gravatar_id":"","url":"https://api.github.com/users/NIckPotapovich","html_url":"https://github.com/NIckPotapovich","followers_url":"https://api.github.com/users/NIckPotapovich/followers","following_url":"https://api.github.com/users/NIckPotapovich/following{/other_user}","gists_url":"https://api.github.com/users/NIckPotapovich/gists{/gist_id}","starred_url":"https://api.github.com/users/NIckPotapovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NIckPotapovich/subscriptions","organizations_url":"https://api.github.com/users/NIckPotapovich/orgs","repos_url":"https://api.github.com/users/NIckPotapovich/repos","events_url":"https://api.github.com/users/NIckPotapovich/events{/privacy}","received_events_url":"https://api.github.com/users/NIckPotapovich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-11T08:23:16Z","updated_at":"2016-03-15T09:30:31Z","closed_at":null,"body":"I was trying to convert an ODT file OdfDocument 2 PDF converter to PDF file. Whether it is possible to convert odt file containing a field in a format code 128 (font code 128 ) , that it be recognized as a pdf in the barcode (font code 128 ) ? And what and how to insert a field in odt barcode pattern to recognize it in pdf after conversion?\r\n"},"comment":{"url":"https://api.github.com/repos/opensagres/xdocreport/issues/comments/196740625","html_url":"https://github.com/opensagres/xdocreport/issues/120#issuecomment-196740625","issue_url":"https://api.github.com/repos/opensagres/xdocreport/issues/120","id":196740625,"user":{"login":"pensionarchitects-ben","id":15927538,"avatar_url":"https://avatars.githubusercontent.com/u/15927538?v=3","gravatar_id":"","url":"https://api.github.com/users/pensionarchitects-ben","html_url":"https://github.com/pensionarchitects-ben","followers_url":"https://api.github.com/users/pensionarchitects-ben/followers","following_url":"https://api.github.com/users/pensionarchitects-ben/following{/other_user}","gists_url":"https://api.github.com/users/pensionarchitects-ben/gists{/gist_id}","starred_url":"https://api.github.com/users/pensionarchitects-ben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pensionarchitects-ben/subscriptions","organizations_url":"https://api.github.com/users/pensionarchitects-ben/orgs","repos_url":"https://api.github.com/users/pensionarchitects-ben/repos","events_url":"https://api.github.com/users/pensionarchitects-ben/events{/privacy}","received_events_url":"https://api.github.com/users/pensionarchitects-ben/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T09:30:31Z","updated_at":"2016-03-15T09:30:31Z","body":"This is how I add new fonts to a converter, maybe this can help you. fontLibrary is the location of all my installed fonts.\r\n\r\n```\r\nOptions options = Options.getFrom(from).to(to);\r\n\tPdfOptions pdfOptions = PdfOptions.create();\r\n\t\tpdfOptions.fontProvider(new IFontProvider() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Font getFont(String familyName, String encoding, float size, int style, Color color) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (familyName.equalsIgnoreCase(\"CALIBRI\")) {\r\n\t\t\t\t\t\tBaseFont baseFont =\r\n\t\t\t\t\t\t\t\tBaseFont.createFont(fontLibrary + \"CALIBRI.TTF\", encoding, BaseFont.EMBEDDED);\r\n\t\t\t\t\t\treturn new Font(baseFont, size, style, color);\r\n\r\n\t\t\t\t\t} else if (familyName.equalsIgnoreCase(\"CAMBRIA\")) {\r\n\t\t\t\t\t\tBaseFont baseFont =\r\n\t\t\t\t\t\t\t\tBaseFont.createFont(fontLibrary + \"CAMBRIA.TTF\", encoding, BaseFont.EMBEDDED);\r\n\t\t\t\t\t\treturn new Font(baseFont, size, style, color);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn FontFactory.getFont(familyName, encoding, size, style, color);\r\n\t\t\t}\r\n\t\t});\r\n\t\toptions.subOptions(pdfOptions);\r\n\t\tIConverter converter = ConverterRegistry.getRegistry().getConverter(options);\r\n```"}}