pdf

ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

你离开我真会死。 提交于 2021-02-10 23:16:14
问题 This problem ties in with the many discussions about the Xerces dependency hell, but I can't seem to solve it. I'm trying to export LaTeX code to PDF in Java. My code is part of an OSGI bundle for Cytoscape 3.4 and is managed and built with Maven. The LaTeX library is jlatexmath (1.0.6) and to write to SVG and PDF I want to try the apache fop (0.95) libs. Fop is depending on a whole range of batik libraries, which in turn depend on xml-apis (1.3.04). With xml-apis included, I get this error:

ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

两盒软妹~` 提交于 2021-02-10 23:16:09
问题 This problem ties in with the many discussions about the Xerces dependency hell, but I can't seem to solve it. I'm trying to export LaTeX code to PDF in Java. My code is part of an OSGI bundle for Cytoscape 3.4 and is managed and built with Maven. The LaTeX library is jlatexmath (1.0.6) and to write to SVG and PDF I want to try the apache fop (0.95) libs. Fop is depending on a whole range of batik libraries, which in turn depend on xml-apis (1.3.04). With xml-apis included, I get this error:

ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

房东的猫 提交于 2021-02-10 23:13:20
问题 This problem ties in with the many discussions about the Xerces dependency hell, but I can't seem to solve it. I'm trying to export LaTeX code to PDF in Java. My code is part of an OSGI bundle for Cytoscape 3.4 and is managed and built with Maven. The LaTeX library is jlatexmath (1.0.6) and to write to SVG and PDF I want to try the apache fop (0.95) libs. Fop is depending on a whole range of batik libraries, which in turn depend on xml-apis (1.3.04). With xml-apis included, I get this error:

ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

吃可爱长大的小学妹 提交于 2021-02-10 23:05:31
问题 This problem ties in with the many discussions about the Xerces dependency hell, but I can't seem to solve it. I'm trying to export LaTeX code to PDF in Java. My code is part of an OSGI bundle for Cytoscape 3.4 and is managed and built with Maven. The LaTeX library is jlatexmath (1.0.6) and to write to SVG and PDF I want to try the apache fop (0.95) libs. Fop is depending on a whole range of batik libraries, which in turn depend on xml-apis (1.3.04). With xml-apis included, I get this error:

How do I make text field to be hidden?

六眼飞鱼酱① 提交于 2021-02-10 20:41:54
问题 I'd like to create a text field with iTextSharp that is not visible. Here's code I'm using to create a textfield: TextField field = new iTextSharp.text.pdf.TextField(writer, new iTextSharp.text.Rectangle(x, y - h, x + w, y), name); field.BackgroundColor = new BaseColor(bgcolor[0], bgcolor[1], bgcolor[2]); field.BorderColor = new BaseColor(bordercolor[0], bordercolor[1], bordercolor[2]); field.BorderWidth = border; field.BorderStyle = PdfBorderDictionary.STYLE_SOLID; field.Text = text; writer

PHP Imagick CMYK PDF convert to JPG

雨燕双飞 提交于 2021-02-10 19:50:00
问题 I use Imagick to convert pdf to JPG. The problem is that pdf is in CMYK format and the colors from resulting jpg is slightly different from those from pdf. I use the following code to achieve the result: $filelist = array("D3807797-8425-5-1_40.pdf[2]","D3807797-8425-5-1_40.pdf[3]"); $all = new Imagick(); foreach($filelist as $file){ $im = new Imagick($file); $all->addImage($im); } $all->resetIterator(); $combined = $all->appendImages(true); $combined->setImageFormat("jpg"); $combined-

Load pdf from server and embed in Vue app

守給你的承諾、 提交于 2021-02-10 18:38:27
问题 I have an api which returns a pdf file. I'm trying to display this in vue.js and found the vue-pdf component which looks like it should do the job. Here's the project on github I'm able to call the API and get the binary response but I've not been able to convert the binary data into something which the vue-pdf library can display. The documentation for the :src prop is here My vue code is below with a few of the failed attempts commented out. <template> <pdf :src="pdfsrc"></pdf> </template>

Save a sheet as pdf with onEdit()

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-10 16:18:31
问题 i'm trying to save a google spreadsheet as pdf and mail it to myself everytime, when a specific cell in the spreadsheet is edited. I have the script which saves the spreadsheet as pdf and emails it and it works and I also have an onEdit(e) script which does exactly what I want. But when I put them together it doesn't work. Here's the script: function onEdit(e) { var sheet1 = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("booking"); var index = sheet1.getRange('O5').getValue(); if(index

How do I apply a server template to envelope document in DocuSign API?

旧城冷巷雨未停 提交于 2021-02-10 15:51:50
问题 I have a client that signs into their DS account, uploads a single 17-page PDF, clicks the action link to the side and selects "Apply Template". The template contains tabs and roles. They fill in the roles in the DS UI and click send. I am attempting to rebuild that process via API. I found this that looks like it should work for exactly my scenario: How do I apply a template to a document using Docusign REST API I am getting an envelope with 34 pages instead: the original 17-page uploaded

Download PDF file from api using javascript IE9

£可爱£侵袭症+ 提交于 2021-02-10 15:45:00
问题 I use angular 1.5 to get a PDF file from an API. Here is my code : $http.get('http://www.example.com/pdf.php') .then(function(response) { if (response) { // get pdf try { var isFileSaverSupported = !!new Blob; var blob = new Blob([response.data], {type: "application/pdf;charset=utf-8"}); FileSaver.saveAs(blob, "Test file.pdf"); } catch (e) { var w = window.open(); var doc = w.document; doc.open( 'application/pdf','replace'); doc.charset = "utf-8"; doc.write(response.data); doc.close(); doc