Easiest method to convert JSON to PDF in java?PDFBOX : U+000A ('controlLF') is not available in this font Helvetica encoding: WinAnsiEncodingIs Java “pass-by-reference” or “pass-by-value”?Can comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?How do I generate random integers within a specific range in Java?Convert HTML + CSS to PDF with PHP?What is the correct JSON content type?Why does Google prepend while(1); to their JSON responses?How do I convert a String to an int in Java?Creating a memory leak with Java
Do crew rest seats count towards the maximum allowed number of seats per flight attendant?
c++ conditional uni-directional iterator
How will the lack of ground stations affect navigation?
Which creature is depicted in this Xanathar's Guide illustration?
Why did the soldiers of the North disobey Jon?
What was Varys trying to do at the beginning of S08E05?
It is as easy as A B C, Figure out U V C from the given relationship
Given 0s on Assignments with suspected and dismissed cheating?
With today's technology, could iron be smelted at La Rinconada?
What do you call the hair or body hair you trim off your body?
Does it matter what way the tires go if no directional arrow?
Single word that parallels "Recent" when discussing the near future
Polynomial division: Is this trick obvious?
Is there an academic word that means "to split hairs over"?
Wireless headphones interfere with Wi-Fi signal on laptop
Does the wearer know what items are in which patch in the Robe of Useful items?
Holding rent money for my friend which amounts to over $10k?
Looking for source for a "yield space" rule my 3.5 group uses
Cuban Primes
Why are goodwill impairments on the statement of cash-flows of GE?
Should generated documentation be stored in a Git repository?
Why did the UK remove the 'European Union' from its passport?
Windows 10 lock screen - display my own random images
Network latencies between opposite ends of the Earth
Easiest method to convert JSON to PDF in java?
PDFBOX : U+000A ('controlLF') is not available in this font Helvetica encoding: WinAnsiEncodingIs Java “pass-by-reference” or “pass-by-value”?Can comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?How do I generate random integers within a specific range in Java?Convert HTML + CSS to PDF with PHP?What is the correct JSON content type?Why does Google prepend while(1); to their JSON responses?How do I convert a String to an int in Java?Creating a memory leak with Java
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I use the Java Spring Boot framework and I need to convert my Json to PDF. The problem is that all text in the PDF is written in one line, which means that line breaks do not work. As a result, I get a PDF in which the first line is blank or an empty file.
@GetMapping("/pdf/Id")
@Secured("ROLE_ADMIN", "ROLE_OPERATOR", "ROLE_GUEST")
public ResponseEntity<PDDocument> findOnePdfByIdJob(@PathVariable("Id") Long id) throws DocumentException, IOException
Job job = jobService.findById(id);
if (job == null)
return new ResponseEntity<>(HttpStatus.NOT_FOUND);
ObjectMapper objectMapper = new ObjectMapper();
String jsonInString = objectMapper.writeValueAsString(job);
Gson gson = new GsonBuilder().setPrettyPrinting().create();
JsonParser jp = new JsonParser();
JsonElement je = jp.parse(jsonInString);
String prettyJsonString = gson.toJson(je);
PDDocument document = new PDDocument();
PDPage page = new PDPage();
document.addPage(page);
PDPageContentStream contentStream = new PDPageContentStream(document, page);
contentStream.setFont(PDType1Font.COURIER, 12);
contentStream.beginText();
contentStream.showText(jsonInString);
contentStream.endText();
contentStream.close();
document.save("pdfBoxHelloWorld.pdf");
document.close();
HttpHeaders headers = new HttpHeaders();
headers.add("Cache-Control", "no-cache, no-store, must-revalidate");
headers.add("Pragma", "no-cache");
headers.add("Expires", "0");
return ResponseEntity.ok()
.headers(headers)
.contentType(MediaType.parseMediaType("application/octet-stream"))
.body(document);
As a result, I get a PDF in which everything is written in one line. That is, the text cannot be read .... The first line becomes just a blank line.
java json spring spring-boot pdf
add a comment |
I use the Java Spring Boot framework and I need to convert my Json to PDF. The problem is that all text in the PDF is written in one line, which means that line breaks do not work. As a result, I get a PDF in which the first line is blank or an empty file.
@GetMapping("/pdf/Id")
@Secured("ROLE_ADMIN", "ROLE_OPERATOR", "ROLE_GUEST")
public ResponseEntity<PDDocument> findOnePdfByIdJob(@PathVariable("Id") Long id) throws DocumentException, IOException
Job job = jobService.findById(id);
if (job == null)
return new ResponseEntity<>(HttpStatus.NOT_FOUND);
ObjectMapper objectMapper = new ObjectMapper();
String jsonInString = objectMapper.writeValueAsString(job);
Gson gson = new GsonBuilder().setPrettyPrinting().create();
JsonParser jp = new JsonParser();
JsonElement je = jp.parse(jsonInString);
String prettyJsonString = gson.toJson(je);
PDDocument document = new PDDocument();
PDPage page = new PDPage();
document.addPage(page);
PDPageContentStream contentStream = new PDPageContentStream(document, page);
contentStream.setFont(PDType1Font.COURIER, 12);
contentStream.beginText();
contentStream.showText(jsonInString);
contentStream.endText();
contentStream.close();
document.save("pdfBoxHelloWorld.pdf");
document.close();
HttpHeaders headers = new HttpHeaders();
headers.add("Cache-Control", "no-cache, no-store, must-revalidate");
headers.add("Pragma", "no-cache");
headers.add("Expires", "0");
return ResponseEntity.ok()
.headers(headers)
.contentType(MediaType.parseMediaType("application/octet-stream"))
.body(document);
As a result, I get a PDF in which everything is written in one line. That is, the text cannot be read .... The first line becomes just a blank line.
java json spring spring-boot pdf
add a comment |
I use the Java Spring Boot framework and I need to convert my Json to PDF. The problem is that all text in the PDF is written in one line, which means that line breaks do not work. As a result, I get a PDF in which the first line is blank or an empty file.
@GetMapping("/pdf/Id")
@Secured("ROLE_ADMIN", "ROLE_OPERATOR", "ROLE_GUEST")
public ResponseEntity<PDDocument> findOnePdfByIdJob(@PathVariable("Id") Long id) throws DocumentException, IOException
Job job = jobService.findById(id);
if (job == null)
return new ResponseEntity<>(HttpStatus.NOT_FOUND);
ObjectMapper objectMapper = new ObjectMapper();
String jsonInString = objectMapper.writeValueAsString(job);
Gson gson = new GsonBuilder().setPrettyPrinting().create();
JsonParser jp = new JsonParser();
JsonElement je = jp.parse(jsonInString);
String prettyJsonString = gson.toJson(je);
PDDocument document = new PDDocument();
PDPage page = new PDPage();
document.addPage(page);
PDPageContentStream contentStream = new PDPageContentStream(document, page);
contentStream.setFont(PDType1Font.COURIER, 12);
contentStream.beginText();
contentStream.showText(jsonInString);
contentStream.endText();
contentStream.close();
document.save("pdfBoxHelloWorld.pdf");
document.close();
HttpHeaders headers = new HttpHeaders();
headers.add("Cache-Control", "no-cache, no-store, must-revalidate");
headers.add("Pragma", "no-cache");
headers.add("Expires", "0");
return ResponseEntity.ok()
.headers(headers)
.contentType(MediaType.parseMediaType("application/octet-stream"))
.body(document);
As a result, I get a PDF in which everything is written in one line. That is, the text cannot be read .... The first line becomes just a blank line.
java json spring spring-boot pdf
I use the Java Spring Boot framework and I need to convert my Json to PDF. The problem is that all text in the PDF is written in one line, which means that line breaks do not work. As a result, I get a PDF in which the first line is blank or an empty file.
@GetMapping("/pdf/Id")
@Secured("ROLE_ADMIN", "ROLE_OPERATOR", "ROLE_GUEST")
public ResponseEntity<PDDocument> findOnePdfByIdJob(@PathVariable("Id") Long id) throws DocumentException, IOException
Job job = jobService.findById(id);
if (job == null)
return new ResponseEntity<>(HttpStatus.NOT_FOUND);
ObjectMapper objectMapper = new ObjectMapper();
String jsonInString = objectMapper.writeValueAsString(job);
Gson gson = new GsonBuilder().setPrettyPrinting().create();
JsonParser jp = new JsonParser();
JsonElement je = jp.parse(jsonInString);
String prettyJsonString = gson.toJson(je);
PDDocument document = new PDDocument();
PDPage page = new PDPage();
document.addPage(page);
PDPageContentStream contentStream = new PDPageContentStream(document, page);
contentStream.setFont(PDType1Font.COURIER, 12);
contentStream.beginText();
contentStream.showText(jsonInString);
contentStream.endText();
contentStream.close();
document.save("pdfBoxHelloWorld.pdf");
document.close();
HttpHeaders headers = new HttpHeaders();
headers.add("Cache-Control", "no-cache, no-store, must-revalidate");
headers.add("Pragma", "no-cache");
headers.add("Expires", "0");
return ResponseEntity.ok()
.headers(headers)
.contentType(MediaType.parseMediaType("application/octet-stream"))
.body(document);
As a result, I get a PDF in which everything is written in one line. That is, the text cannot be read .... The first line becomes just a blank line.
java json spring spring-boot pdf
java json spring spring-boot pdf
edited Mar 23 at 17:26
J Woodchuck
1,0121124
1,0121124
asked Mar 23 at 15:12
user3391185user3391185
152
152
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You do not need to use Gson if you already use Jackson's ObjectMapper. Just enable SerializationFeature.INDENT_OUTPUT feature and ObjectMapper will generate pretty JSON as well. Also, you need split JSON on lines and add each line one by one using newLine method from PDPageContentStream.
Simple app:
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.type.MapType;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageContentStream;
import org.apache.pdfbox.pdmodel.font.PDType1Font;
import java.io.File;
import java.util.Map;
public class PdfApp
public static void main(String[] args) throws Exception
File jsonFile = new File("./resource/test.json").getAbsoluteFile();
ObjectMapper mapper = new ObjectMapper();
// enable pretty printing
mapper.enable(SerializationFeature.INDENT_OUTPUT);
// read map from file
MapType mapType = mapper.getTypeFactory().constructMapType(Map.class, String.class, Object.class);
Map<String, Object> map = mapper.readValue(jsonFile, mapType);
// generate pretty JSON from map
String json = mapper.writeValueAsString(map);
// split by system new lines
String[] strings = json.split(System.lineSeparator());
PDDocument document = new PDDocument();
PDPage page = new PDPage();
document.addPage(page);
PDPageContentStream contentStream = new PDPageContentStream(document, page);
contentStream.setFont(PDType1Font.COURIER, 12);
contentStream.beginText();
contentStream.setLeading(14.5f);
contentStream.newLineAtOffset(25, 725);
for (String string : strings)
contentStream.showText(string);
// add line manually
contentStream.newLine();
contentStream.endText();
contentStream.close();
document.save("pdfBoxHelloWorld.pdf");
document.close();
Generates PDF file with content like below:
See also:
- PDFBox - Adding Multiple Lines
- PDFBOX : U+000A ('controlLF') is not available in this font Helvetica encoding: WinAnsiEncoding
Thank, but when i try to use this example it cannot find one of the fonts, if I understood correctly: 2019-03-23 19:48:30.701 ERROR 7700 --- [nio-8443-exec-2] o.a.p.p.font.FileSystemFontProvider : Could not load font file: C:WindowsFONTSmstmc.ttf When i debugging a program crashes on the line: contentStream.beginText ();
– user3391185
Mar 23 at 18:56
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55315164%2feasiest-method-to-convert-json-to-pdf-in-java%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You do not need to use Gson if you already use Jackson's ObjectMapper. Just enable SerializationFeature.INDENT_OUTPUT feature and ObjectMapper will generate pretty JSON as well. Also, you need split JSON on lines and add each line one by one using newLine method from PDPageContentStream.
Simple app:
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.type.MapType;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageContentStream;
import org.apache.pdfbox.pdmodel.font.PDType1Font;
import java.io.File;
import java.util.Map;
public class PdfApp
public static void main(String[] args) throws Exception
File jsonFile = new File("./resource/test.json").getAbsoluteFile();
ObjectMapper mapper = new ObjectMapper();
// enable pretty printing
mapper.enable(SerializationFeature.INDENT_OUTPUT);
// read map from file
MapType mapType = mapper.getTypeFactory().constructMapType(Map.class, String.class, Object.class);
Map<String, Object> map = mapper.readValue(jsonFile, mapType);
// generate pretty JSON from map
String json = mapper.writeValueAsString(map);
// split by system new lines
String[] strings = json.split(System.lineSeparator());
PDDocument document = new PDDocument();
PDPage page = new PDPage();
document.addPage(page);
PDPageContentStream contentStream = new PDPageContentStream(document, page);
contentStream.setFont(PDType1Font.COURIER, 12);
contentStream.beginText();
contentStream.setLeading(14.5f);
contentStream.newLineAtOffset(25, 725);
for (String string : strings)
contentStream.showText(string);
// add line manually
contentStream.newLine();
contentStream.endText();
contentStream.close();
document.save("pdfBoxHelloWorld.pdf");
document.close();
Generates PDF file with content like below:
See also:
- PDFBox - Adding Multiple Lines
- PDFBOX : U+000A ('controlLF') is not available in this font Helvetica encoding: WinAnsiEncoding
Thank, but when i try to use this example it cannot find one of the fonts, if I understood correctly: 2019-03-23 19:48:30.701 ERROR 7700 --- [nio-8443-exec-2] o.a.p.p.font.FileSystemFontProvider : Could not load font file: C:WindowsFONTSmstmc.ttf When i debugging a program crashes on the line: contentStream.beginText ();
– user3391185
Mar 23 at 18:56
add a comment |
You do not need to use Gson if you already use Jackson's ObjectMapper. Just enable SerializationFeature.INDENT_OUTPUT feature and ObjectMapper will generate pretty JSON as well. Also, you need split JSON on lines and add each line one by one using newLine method from PDPageContentStream.
Simple app:
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.type.MapType;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageContentStream;
import org.apache.pdfbox.pdmodel.font.PDType1Font;
import java.io.File;
import java.util.Map;
public class PdfApp
public static void main(String[] args) throws Exception
File jsonFile = new File("./resource/test.json").getAbsoluteFile();
ObjectMapper mapper = new ObjectMapper();
// enable pretty printing
mapper.enable(SerializationFeature.INDENT_OUTPUT);
// read map from file
MapType mapType = mapper.getTypeFactory().constructMapType(Map.class, String.class, Object.class);
Map<String, Object> map = mapper.readValue(jsonFile, mapType);
// generate pretty JSON from map
String json = mapper.writeValueAsString(map);
// split by system new lines
String[] strings = json.split(System.lineSeparator());
PDDocument document = new PDDocument();
PDPage page = new PDPage();
document.addPage(page);
PDPageContentStream contentStream = new PDPageContentStream(document, page);
contentStream.setFont(PDType1Font.COURIER, 12);
contentStream.beginText();
contentStream.setLeading(14.5f);
contentStream.newLineAtOffset(25, 725);
for (String string : strings)
contentStream.showText(string);
// add line manually
contentStream.newLine();
contentStream.endText();
contentStream.close();
document.save("pdfBoxHelloWorld.pdf");
document.close();
Generates PDF file with content like below:
See also:
- PDFBox - Adding Multiple Lines
- PDFBOX : U+000A ('controlLF') is not available in this font Helvetica encoding: WinAnsiEncoding
Thank, but when i try to use this example it cannot find one of the fonts, if I understood correctly: 2019-03-23 19:48:30.701 ERROR 7700 --- [nio-8443-exec-2] o.a.p.p.font.FileSystemFontProvider : Could not load font file: C:WindowsFONTSmstmc.ttf When i debugging a program crashes on the line: contentStream.beginText ();
– user3391185
Mar 23 at 18:56
add a comment |
You do not need to use Gson if you already use Jackson's ObjectMapper. Just enable SerializationFeature.INDENT_OUTPUT feature and ObjectMapper will generate pretty JSON as well. Also, you need split JSON on lines and add each line one by one using newLine method from PDPageContentStream.
Simple app:
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.type.MapType;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageContentStream;
import org.apache.pdfbox.pdmodel.font.PDType1Font;
import java.io.File;
import java.util.Map;
public class PdfApp
public static void main(String[] args) throws Exception
File jsonFile = new File("./resource/test.json").getAbsoluteFile();
ObjectMapper mapper = new ObjectMapper();
// enable pretty printing
mapper.enable(SerializationFeature.INDENT_OUTPUT);
// read map from file
MapType mapType = mapper.getTypeFactory().constructMapType(Map.class, String.class, Object.class);
Map<String, Object> map = mapper.readValue(jsonFile, mapType);
// generate pretty JSON from map
String json = mapper.writeValueAsString(map);
// split by system new lines
String[] strings = json.split(System.lineSeparator());
PDDocument document = new PDDocument();
PDPage page = new PDPage();
document.addPage(page);
PDPageContentStream contentStream = new PDPageContentStream(document, page);
contentStream.setFont(PDType1Font.COURIER, 12);
contentStream.beginText();
contentStream.setLeading(14.5f);
contentStream.newLineAtOffset(25, 725);
for (String string : strings)
contentStream.showText(string);
// add line manually
contentStream.newLine();
contentStream.endText();
contentStream.close();
document.save("pdfBoxHelloWorld.pdf");
document.close();
Generates PDF file with content like below:
See also:
- PDFBox - Adding Multiple Lines
- PDFBOX : U+000A ('controlLF') is not available in this font Helvetica encoding: WinAnsiEncoding
You do not need to use Gson if you already use Jackson's ObjectMapper. Just enable SerializationFeature.INDENT_OUTPUT feature and ObjectMapper will generate pretty JSON as well. Also, you need split JSON on lines and add each line one by one using newLine method from PDPageContentStream.
Simple app:
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.type.MapType;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageContentStream;
import org.apache.pdfbox.pdmodel.font.PDType1Font;
import java.io.File;
import java.util.Map;
public class PdfApp
public static void main(String[] args) throws Exception
File jsonFile = new File("./resource/test.json").getAbsoluteFile();
ObjectMapper mapper = new ObjectMapper();
// enable pretty printing
mapper.enable(SerializationFeature.INDENT_OUTPUT);
// read map from file
MapType mapType = mapper.getTypeFactory().constructMapType(Map.class, String.class, Object.class);
Map<String, Object> map = mapper.readValue(jsonFile, mapType);
// generate pretty JSON from map
String json = mapper.writeValueAsString(map);
// split by system new lines
String[] strings = json.split(System.lineSeparator());
PDDocument document = new PDDocument();
PDPage page = new PDPage();
document.addPage(page);
PDPageContentStream contentStream = new PDPageContentStream(document, page);
contentStream.setFont(PDType1Font.COURIER, 12);
contentStream.beginText();
contentStream.setLeading(14.5f);
contentStream.newLineAtOffset(25, 725);
for (String string : strings)
contentStream.showText(string);
// add line manually
contentStream.newLine();
contentStream.endText();
contentStream.close();
document.save("pdfBoxHelloWorld.pdf");
document.close();
Generates PDF file with content like below:
See also:
- PDFBox - Adding Multiple Lines
- PDFBOX : U+000A ('controlLF') is not available in this font Helvetica encoding: WinAnsiEncoding
edited Mar 23 at 16:27
answered Mar 23 at 16:20
Michał ZioberMichał Ziober
18.2k1372110
18.2k1372110
Thank, but when i try to use this example it cannot find one of the fonts, if I understood correctly: 2019-03-23 19:48:30.701 ERROR 7700 --- [nio-8443-exec-2] o.a.p.p.font.FileSystemFontProvider : Could not load font file: C:WindowsFONTSmstmc.ttf When i debugging a program crashes on the line: contentStream.beginText ();
– user3391185
Mar 23 at 18:56
add a comment |
Thank, but when i try to use this example it cannot find one of the fonts, if I understood correctly: 2019-03-23 19:48:30.701 ERROR 7700 --- [nio-8443-exec-2] o.a.p.p.font.FileSystemFontProvider : Could not load font file: C:WindowsFONTSmstmc.ttf When i debugging a program crashes on the line: contentStream.beginText ();
– user3391185
Mar 23 at 18:56
Thank, but when i try to use this example it cannot find one of the fonts, if I understood correctly: 2019-03-23 19:48:30.701 ERROR 7700 --- [nio-8443-exec-2] o.a.p.p.font.FileSystemFontProvider : Could not load font file: C:WindowsFONTSmstmc.ttf When i debugging a program crashes on the line: contentStream.beginText ();
– user3391185
Mar 23 at 18:56
Thank, but when i try to use this example it cannot find one of the fonts, if I understood correctly: 2019-03-23 19:48:30.701 ERROR 7700 --- [nio-8443-exec-2] o.a.p.p.font.FileSystemFontProvider : Could not load font file: C:WindowsFONTSmstmc.ttf When i debugging a program crashes on the line: contentStream.beginText ();
– user3391185
Mar 23 at 18:56
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55315164%2feasiest-method-to-convert-json-to-pdf-in-java%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown