我正在寻找一种将PDF XFA文件转换为普通PDF文件的方法,这些文件可以通过Imagemagick或ghostscript进行处理和/或压缩.我找到的所有选项只是删除了XFA标记,导致出现空文件.
一种方法是使用Adobe acrobat reader并通过虚拟打印机打印文件.但这不是服务器上可接受的选项.
IText也是不可选择的,因为它对于我们需要的东西太贵了.有人有想法或有更好的方法吗?
我在 Azure DevOps 下有一个相对简单的测试项目,我想生成代码覆盖率。
这有效...有点。我明白了:
我得到了我需要的文件(至少我认为)但是选项卡丢失了。
我有这三个步骤:
执行 .NET 测试任务 安装报告生成器 运行报告生成器以转换 (-reporttypes:HtmlInline_AzurePipelines;Cobertura") 发布结果
但选项卡没有显示?有任何想法吗?
- stage: Run_Unit_tests
jobs:
- job: 'Tests'
pool:
vmImage: 'windows-latest'
variables:
buildConfiguration: 'Release'
continueOnError: true
steps:
- task: DotNetCoreCLI@2
inputs:
command: custom
custom: tool
arguments: install --tool-path . dotnet-reportgenerator-globaltool
displayName: Install ReportGenerator tool
- task: DotNetCoreCLI@2
displayName: Test .NET
inputs:
command: test
projects: '**/*Test/*.csproj'
arguments: '--configuration $(buildConfiguration) --logger trx --collect:"XPlat Code Coverage"'
condition: succeededOrFailed()
- task: reportgenerator@4
inputs:
reports: '$(Agent.TempDirectory)\**\coverage.cobertura.xml'
targetdir: '$(Build.SourcesDirectory)\coverlet\reports'
verbosity: 'Verbose'
- …Run Code Online (Sandbox Code Playgroud)