Tag: pdf的一代

java.lang.ClassNotFoundException:com.github.dandelion.datatables.core.export.ExportProperties

我正在使用我的spring项目中的dandalion数据表。 我想导出我的数据表格网格为PDF,Excel等。 所以我开始使用PDF 按照这个链接 我一个一个地跟着步骤 第1步:添加jar文件 数据表,出口的iText-0.10.0.jar 数据表出口-POI-0.10.0.jar 数据表出口-POI-OOXML-0.10.0.jar iText的-1.3.jar 第2步:添加Web.xml筛选器 <!– Dandelion-Datatables filter definition (used for export) –> <filter> <filter-name>datatablesFilter</filter-name> <filter-class>com.github.dandelion.datatables.extras.servlet2.filter.DatatablesFilter</filter-class> </filter> <filter-mapping> <filter-name>datatablesFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> 而在jsp中 <datatables:table id="roles" data="${list}" cssClass="table table-striped" pageable="true" displayLength="5" filterable="true" processing="true" autoWidth="true" export="pdf"> <datatables:column title="Id" property="roleId" /> <datatables:column title="Role" property="role" /> <datatables:export type="pdf" cssClass="btn btn-small" /> </datatables:table> 但是我得到以下错误。 java.lang.ClassNotFoundException:com.github.dandelion.datatables.core.export.ExportPropertiesat […]

用于validationPDF和Excel文件types的模式

我有一个networking应用程序,允许用户上传附件; 但是,我想限制用户只有某些文件types – Adob​​e PDF和MS Excel。 原因是在用户提交文档进行处理和工作stream程之前,我将汇总一些附件并创build一个PDF报告。 我做了一些研究和转换的DOC(X),RTF等…将是头痛。 另外,如果附件全都是PDF格式的话,那么每个人都将“理论上”获得更好的可移植性。 目前我正在检查MIMEtypes – PDF – "application/pdf" XLS(X) – "application/vnd.ms-excel" "application/msexcel" "application/x-msexcel" "application/x-ms-excel" "application/x-excel" "application/x-dos_ms_excel" "application/xls" "application/x-xls" 这很好,除了我注意到,我可以采取例如.docx文件,并将其扩展名为.pdf并成功绕过此检查。 为了弥补这一点,我打算进一步检查实际文件的标题。 根据这个文件签名库 PDF将具有以下标题 – 25 50 44 46 它会有以下一个拖车 – 0A 25 25 45 4F 46 (.%%EOF) 0A 25 25 45 4F 46 0A (.%%EOF.) 0D 0A 25 25 45 […]

Exportasfixedformat break excel(excel to pdf)

我正尝试使用Exportasfixedformat方法将.xls转换为pdf。 它有效,但是它的行为很奇怪。 我的优秀是这样的: 第1列|第2列|第3列|第4列|第5列|第6列|第7列|第8列|第9列 和pdf是这样的: 第1列|第2列|第3列(第一页)第4列|第5列|第6列(第二页)等等。 我尝试了两个 WrkBook.ExportAsFixedFormat(Excel.XlFixedFormatType.xlTypePDF, aPathFile) WrkBook.ExportAsFixedFormat(Excel.XlFixedFormatType.xlTypePDF, aPathFile, Excel.XlFixedFormatQuality.xlQualityStandard, True, False, 1, 1, False, System.Reflection.Missing.Value) 我想显示在一个页面上的所有列任何build议? 请帮忙 我使用Itextsharp。

如何将MS-Excel文件转换为Java中的Pdf?

因为我用Excel的JXL api ,但现在我想将其转换为PDF文件,所以请告诉我如何更改我的代码转换为excel ?

如果Adobe当前打开一个版本,VBA查看表单失败

我写了下面的函数来查看一个PDF格式的电子表格,点击一个选项button。 Public Function RunPDFReport(CellRange As String) As String Application.ScreenUpdating = False refPositionDetails.Range("O2").Value = dsbDashboard.Range(CellRange).Value dsbDashboard.Unprotect On Error GoTo ErrHandler: With refPositionDetails .Visible = xlSheetVisible .ExportAsFixedFormat Type:=xlTypePDF, Quality:=xlQualityStandard, _ IncludeDocProperties:=True, IgnorePrintAreas:=False, _ OpenAfterPublish:=True, from:=1, To:=3 .Visible = xlSheetVeryHidden Application.ScreenUpdating = True dsbDashboard.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True dsbDashboard.Activate End ErrHandler: MsgBox "Report Canceled", vbCritical End With End Function […]

以编程方式将PDF保存在特定的文件夹中

我试图让这个程序来保存我的PDF文件在Excel模板保存在我的模板代码文件夹相同的文件夹。 这是我迄今为止的代码。 我卡住的部分在“Dim Save Path”的底部。 任何build议,非常感谢! Sub SaveToPDF() Dim fp As String Dim fp1 As String Dim i As Integer Dim Max As Integer Dim numprints As Integer Dim fnum As String Dim wb As Workbook i = 1 fnum = Sheets("Sheet2").Range("B3").Value Worksheets("Printable").Activate Set wb = ActiveWorkbook 'counting the number of pagebreaks to identify number […]

将日程安排转换成日历文件

我有一个pdf,其中包含我们比赛中所有球队的比赛时间表。 我怎样才能得到一个日历文件中的一个团队的时间表? 这是pdf: http : //s000.tinyupload.com/? file_id= 10142707428734526357 我猜我必须将PDF转换为Excel? 然后过滤该excel文件并格式化它?

macros自动保存用word / excel生成的文档

此时,我有一个文件,您可以从其他程序中input多个输出,根据您在combobox(表格控件)中select的人数将这些数据转换为每个人的统计数据和图表。 这个工作正常。 excel连接到一个MS Word文档,该文档显示Excel文档中select的人员的graphics和统计信息。 我想有一个button,可以自动将单个文档保存为不同名称的PDF。 manual: open both documents manual: click on the macro macro: go to first of the combobox list (this can be done by changing output of combobox to 1) loop macro: open word and safe as pdf macro: if number of people that have to be done is same as output […]

Excel VBA通​​过在多个PDF中分组来创build分页符

我目前有一个Excel表,有四列:名字(A),姓氏(B),组(C)和PDF(D)。 得益于另一个线程的帮助,我们能够确保以下VBA代码完美地将电子表格分割为基于列D的多个PDF: Option Base 1 Sub pdf() Dim ws As Worksheet Dim dArr() As String, outputPath As String, fileStem As String Dim dCol As Long, stRow As Long, endRow As Long, pStRow As Long Dim docCnt As Long, lnCnt As Long Dim rwsPerPage As Integer, topM As Integer, botM As Integer Dim empNme As String […]

调整几张纸并保存为PDF

我需要resize的几张纸,以使他们始终在相同的大小…然后将其全部保存为PDF文件。 我不认识VBA,所以我正在做一个“frankestein代码”在这里和那里。 我得到的是以下代码,适用于T1工作表,但不适用于其他T2和T3工作表。如何包含它们? Sub Imprimir_PDF() Dim ws As Worksheet Dim lastRow As Long Set ws = ThisWorkbook.Sheets("T1") 'find the last row with formatting, to be included in print range lastRow = ws.UsedRange.SpecialCells(xlCellTypeLastCell).Row ws.PageSetup.PrintArea = ws.Range("A2:CK" & lastRow).Address ThisWorkbook.Sheets(Array("T1", "T2", "T3")).Select Selection.ExportAsFixedFormat _ Type:=xlTypePDF, _ Filename:="C:\PaintChecker\Camadas\temp.pdf", _ Quality:=xlQualityStandard, _ IncludeDocProperties:=True, _ IgnorePrintAreas:=False, _ OpenAfterPublish:=True End Sub