Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 4b249d3c authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

removing PDF report

parent fc6695e6
Branches
Tags
No related merge requests found
Showing
with 7 additions and 59106 deletions
......@@ -131,10 +131,6 @@
<OptionStrict>On</OptionStrict>
</PropertyGroup>
<ItemGroup>
<Reference Include="itextsharp, Version=5.5.9.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\iTextSharp.5.5.9\lib\itextsharp.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Build.Framework" />
<Reference Include="Microsoft.WindowsAPICodePack, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
......
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="iTextSharp" version="5.5.9" targetFramework="net45" />
<package id="Microsoft.WindowsAPICodePack.Core" version="1.1.0" targetFramework="net45" />
<package id="Microsoft.WindowsAPICodePack.Shell" version="1.1.0" targetFramework="net45" />
<package id="Newtonsoft.Json" version="8.0.3" targetFramework="net45" />
......
......@@ -31,7 +31,6 @@
using System;
using System.Data;
using Org.BouncyCastle.Asn1;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Utils;
......
......@@ -39,14 +39,12 @@ using TUGraz.VectoCommon.Exceptions;
using TUGraz.VectoCommon.InputData;
using TUGraz.VectoCommon.Models;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Configuration;
using TUGraz.VectoCore.InputData;
using TUGraz.VectoCore.InputData.Reader.Impl;
using TUGraz.VectoCore.Models.Declaration;
using TUGraz.VectoCore.Models.SimulationComponent.Data;
using TUGraz.VectoCore.OutputData;
using TUGraz.VectoCore.OutputData.ModFilter;
using TUGraz.VectoCore.OutputData.PDF;
namespace TUGraz.VectoCore.Models.Simulation.Impl
{
......@@ -79,11 +77,10 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
if (declDataProvider == null) {
throw new VectoException("InputDataProvider does not implement DeclarationData interface");
}
var report = declarationReport ?? new PDFDeclarationReport(writer);
var windowsIdentity = WindowsIdentity.GetCurrent();
report.Creator = windowsIdentity.Name;
report.JobName = declDataProvider.JobInputData().JobName;
DataReader = new DeclarationModeVectoRunDataFactory(declDataProvider, report);
if (declarationReport != null) {
declarationReport.JobName = declDataProvider.JobInputData().JobName;
}
DataReader = new DeclarationModeVectoRunDataFactory(declDataProvider, declarationReport);
break;
case ExecutionMode.Engineering:
var engDataProvider = dataProvider as IEngineeringInputDataProvider;
......
......@@ -37,9 +37,7 @@ using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Models.Declaration;
using TUGraz.VectoCore.Models.Simulation.Data;
using TUGraz.VectoCore.Models.Simulation.Impl;
using TUGraz.VectoCore.Models.SimulationComponent.Data;
using TUGraz.VectoCore.Models.SimulationComponent.Data.Engine;
using TUGraz.VectoCore.OutputData.PDF;
namespace TUGraz.VectoCore.OutputData
{
......
This diff is collapsed.
......@@ -30,11 +30,9 @@
*/
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.CompilerServices;
using Org.BouncyCastle.Asn1;
using TUGraz.VectoCommon.Models;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Configuration;
......@@ -316,9 +314,9 @@ namespace TUGraz.VectoCore.OutputData
row[ENGINE_MANUFACTURER] = runData.EngineData.Manufacturer;
row[ENGINE_MODEL] = runData.EngineData.ModelName;
row[ENGINE_FUEL_TYPE] = runData.EngineData.FuelType.GetLabel();
row[ENGINE_RATED_POWER] =runData.EngineData.RatedPowerDeclared != null ?
runData.EngineData.RatedPowerDeclared.ConvertTo().Kilo.Watt:
runData.EngineData.FullLoadCurves[0].MaxPower.ConvertTo().Kilo.Watt;
row[ENGINE_RATED_POWER] = runData.EngineData.RatedPowerDeclared != null
? runData.EngineData.RatedPowerDeclared.ConvertTo().Kilo.Watt
: runData.EngineData.FullLoadCurves[0].MaxPower.ConvertTo().Kilo.Watt;
row[ENGINE_IDLING_SPEED] = runData.EngineData.IdleSpeed.AsRPM.SI<Scalar>();
row[ENGINE_RATED_SPEED] = runData.EngineData.RatedSpeedDeclared != null
? runData.EngineData.RatedSpeedDeclared.AsRPM.SI<Scalar>()
......
......@@ -85,9 +85,6 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="DocumentFormat.OpenXml, Version=2.5.5631.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="itextsharp">
<HintPath>..\..\packages\iTextSharp.5.5.9\lib\itextsharp.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
......@@ -266,7 +263,6 @@
<Compile Include="OutputData\IModalDataContainer.cs" />
<Compile Include="OutputData\IDataWriter.cs" />
<Compile Include="OutputData\ModalDataContainer.cs" />
<Compile Include="OutputData\PDF\PDFDeclarationReport.cs" />
<Compile Include="OutputData\SummaryDataContainer.cs" />
<Compile Include="Properties\Version.cs">
<AutoGen>True</AutoGen>
......
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="iTextSharp" version="5.5.9" targetFramework="net45" />
<package id="JetBrains.Annotations" version="10.1.4" targetFramework="net45" />
<package id="Newtonsoft.Json" version="8.0.3" targetFramework="net45" />
<package id="NLog" version="4.2.3" targetFramework="net45" />
......
/*
* This file is part of VECTO.
*
* Copyright © 2012-2016 European Union
*
* Developed by Graz University of Technology,
* Institute of Internal Combustion Engines and Thermodynamics,
* Institute of Technical Informatics
*
* VECTO is licensed under the EUPL, Version 1.1 or - as soon they will be approved
* by the European Commission - subsequent versions of the EUPL (the "Licence");
* You may not use VECTO except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* https://joinup.ec.europa.eu/community/eupl/og_page/eupl
*
* Unless required by applicable law or agreed to in writing, VECTO
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*
* Authors:
* Stefan Hausberger, hausberger@ivt.tugraz.at, IVT, Graz University of Technology
* Christian Kreiner, christian.kreiner@tugraz.at, ITI, Graz University of Technology
* Michael Krisper, michael.krisper@tugraz.at, ITI, Graz University of Technology
* Raphael Luz, luz@ivt.tugraz.at, IVT, Graz University of Technology
* Markus Quaritsch, markus.quaritsch@tugraz.at, IVT, Graz University of Technology
* Martin Rexeis, rexeis@ivt.tugraz.at, IVT, Graz University of Technology
*/
using System.IO;
using System.Linq;
using iTextSharp.text.pdf;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TUGraz.VectoCommon.Models;
using TUGraz.VectoCore.InputData.FileIO.JSON;
using TUGraz.VectoCore.Models.Simulation.Impl;
using TUGraz.VectoCore.OutputData;
using TUGraz.VectoCore.OutputData.FileIO;
namespace TUGraz.VectoCore.Tests.Integration
{
[TestClass]
public class DeclarationReportTest
{
[TestMethod, TestCategory("LongRunning")]
public void DeclarationReport_Test()
{
const string jobFile = @"TestData\Jobs\job-report.vecto";
if (File.Exists(@"TestData\Jobs\job-report.vsum")) {
File.Delete(@"TestData\Jobs\job-report.vsum");
}
if (File.Exists(@"TestData\Jobs\job-report.pdf")) {
File.Delete(@"TestData\Jobs\job-report.pdf");
}
var fileWriter = new FileOutputWriter(jobFile);
var sumData = new SummaryDataContainer(fileWriter);
var jobContainer = new JobContainer(sumData);
var inputData = JSONInputDataFactory.ReadJsonJob(jobFile);
var factory = new SimulatorFactory(ExecutionMode.Declaration, inputData, fileWriter);
jobContainer.AddRuns(factory);
jobContainer.Execute();
jobContainer.WaitFinished();
Assert.IsTrue(jobContainer.Runs.All(r => r.Success), string.Concat(jobContainer.Runs.Select(r => r.ExecException)));
Assert.IsTrue(File.Exists(@"TestData\Jobs\job-report.vsum"));
Assert.IsTrue(File.Exists(@"TestData\Jobs\job-report.pdf"));
var pdf = new PdfReader(@"TestData\Jobs\job-report.pdf");
Assert.AreEqual(4, pdf.NumberOfPages);
}
}
}
\ No newline at end of file
......@@ -30,9 +30,7 @@
*/
using System.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NUnit.Framework;
using Org.BouncyCastle.Asn1.Esf;
using TUGraz.VectoCommon.Models;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Models.Simulation;
......
......@@ -32,11 +32,8 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NUnit.Framework;
using Org.BouncyCastle.Asn1;
using TUGraz.VectoCommon.InputData;
using TUGraz.VectoCommon.Models;
using TUGraz.VectoCommon.Utils;
......@@ -44,7 +41,6 @@ using TUGraz.VectoCore.Configuration;
using TUGraz.VectoCore.InputData.FileIO.JSON;
using TUGraz.VectoCore.Models.Simulation.Data;
using TUGraz.VectoCore.Models.Simulation.Impl;
using TUGraz.VectoCore.Models.SimulationComponent.Data;
using TUGraz.VectoCore.Models.SimulationComponent.Data.Engine;
using TUGraz.VectoCore.Models.SimulationComponent.Impl;
using TUGraz.VectoCore.OutputData;
......
......@@ -31,12 +31,8 @@
using System;
using System.Linq;
using System.Windows.Forms.VisualStyles;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NUnit.Framework;
using Org.BouncyCastle.Asn1;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Utils;
using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
namespace TUGraz.VectoCore.Tests.Utils
......
......@@ -93,7 +93,6 @@
<Compile Include="Integration\FullCycleDeclarationTest.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Integration\DeclarationReportTest.cs" />
<Compile Include="Integration\ShiftStrategy\ShiftStrategyTest.cs" />
<Compile Include="Integration\TorqueLimitsTest.cs" />
<Compile Include="Models\Declaration\DataAdapter\DeclarationAdapterTestHelper.cs" />
......
This diff is collapsed.
File deleted
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>iTextSharp</id>
<version>5.5.9</version>
<title>iTextSharp</title>
<authors>Bruno Lowagie, Paulo Soares, et al.</authors>
<owners>Bruno Lowagie, Paulo Soares, et al.</owners>
<licenseUrl>http://www.gnu.org/licenses/agpl.html</licenseUrl>
<projectUrl>http://itextpdf.com/</projectUrl>
<iconUrl>http://itextpdf.com/sites/default/files/ITSC-avatar.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>iText is a PDF library that allows you to CREATE, ADAPT, INSPECT and MAINTAIN documents in the Portable Document Format (PDF):
- Generate documents and reports based on data from an XML file or a database
- Create maps and books, exploiting numerous interactive features available in PDF
- Add bookmarks, page numbers, watermarks, and other features to existing PDF documents
- Split or concatenate pages from existing PDF files
- Fill out interactive forms
- Serve dynamically generated or manipulated PDF documents to a web browser
iText is used by Java, .NET, Android and GAE developers to enhance their applications with PDF functionality.
iTextSharp is the .NET port.
Several iText engineers are actively supporting the project on StackOverflow: http://stackoverflow.com/questions/tagged/itext</description>
<summary>iTextSharp is a port of the iText open source java library for PDF generation written entirely in C# for the .NET platform.</summary>
<releaseNotes>http://itextpdf.com/release/iText559</releaseNotes>
<copyright>Copyright (c) 1998-2016 iText Group NV</copyright>
<language>en-US</language>
<tags>itext itextsharp c# .net csharp pdf</tags>
</metadata>
</package>
\ No newline at end of file
This diff is collapsed.
File deleted
iTextSharp consists of several dlls.
The main iTextSharp release contains:
- itextsharp.dll: the core library
- itextsharp.xtra.dll: extra functionality (PDF 2!)
- itextsharp.pdfa.dll: PDF/A-related functionality
This project is hosted on http://sourceforge.net/projects/itextsharp/
You can find the latest release here:
http://sourceforge.net/projects/itextsharp/files/itextsharp/
In some cases, you'll need extra dlls.
These dlls are available here:
http://sourceforge.net/projects/itextsharp/files/extras/
For XML (and HTML) functionality, you need this dll:
- itextsharp.xmlworker.dll
This is available on http://sourceforge.net/projects/itextsharp/files/xmlworker/
Finally, we also have a Java tool that can help you debug PDFs:
- itext-rups-x.y.z.jar
This project is hosted on http://sourceforge.net/projects/itextrups/
iTextSharp is licensed as AGPL software.
AGPL is a free / open source software license.
This doesn't mean the software is gratis!
Buying a license is mandatory as soon as you develop commercial activities
distributing the iTextSharp software inside your product or deploying it on a network
without disclosing the source code of your own applications under the AGPL license.
These activities include: offering paid services to customers as an ASP,
serving PDFs on the fly in the cloud or in a web application,
shipping iTextSharp with a closed source product.
Contact sales for more info: http://itextpdf.com/sales
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment