mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-31 07:26:09 +00:00 
			
		
		
		
	Correctif encodage pdf release
This commit is contained in:
		
							parent
							
								
									28049fdd3e
								
							
						
					
					
						commit
						d5f630464a
					
				
					 4 changed files with 29 additions and 11 deletions
				
			
		|  | @ -15,7 +15,7 @@ | |||
|     <AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest> | ||||
|     <MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix> | ||||
|     <MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix> | ||||
|     <ReleaseVersion>1.32</ReleaseVersion> | ||||
|     <ReleaseVersion>1.38</ReleaseVersion> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||||
|     <DebugSymbols>true</DebugSymbols> | ||||
|  | @ -32,6 +32,7 @@ | |||
|     <EnableLLVM>false</EnableLLVM> | ||||
|     <BundleAssemblies>false</BundleAssemblies> | ||||
|     <AndroidEnableProfiledAot>false</AndroidEnableProfiledAot> | ||||
|     <MandroidI18n>West</MandroidI18n> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||||
|     <DebugSymbols>false</DebugSymbols> | ||||
|  | @ -55,6 +56,7 @@ | |||
|     <AndroidCreatePackagePerAbi>true</AndroidCreatePackagePerAbi> | ||||
|     <AndroidDexTool>d8</AndroidDexTool> | ||||
|     <AndroidLinkTool>r8</AndroidLinkTool> | ||||
|     <MandroidI18n>West</MandroidI18n> | ||||
|   </PropertyGroup> | ||||
|   <ItemGroup> | ||||
|     <Reference Include="Mono.Android" /> | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.nioux.aidedejeu" android:installLocation="preferExternal" android:versionCode="37" android:versionName="1.37"> | ||||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.nioux.aidedejeu" android:installLocation="preferExternal" android:versionCode="38" android:versionName="1.38"> | ||||
| 	<uses-sdk android:targetSdkVersion="28" /> | ||||
| 	<application android:label="Beta Haches & Dés"> | ||||
| 		<provider android:name="android.support.v4.content.FileProvider" android:authorities="com.nioux.aidedejeu.fileprovider" android:exported="false" android:grantUriPermissions="true"> | ||||
|  |  | |||
|  | @ -85,8 +85,8 @@ | |||
|     <UseVSHostingProcess>false</UseVSHostingProcess> | ||||
|     <ErrorReport>prompt</ErrorReport> | ||||
|     <Prefer32Bit>true</Prefer32Bit> | ||||
|     <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain> | ||||
|     <Optimize>true</Optimize> | ||||
|     <UseDotNetNativeToolchain>false</UseDotNetNativeToolchain> | ||||
|     <Optimize>false</Optimize> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'"> | ||||
|     <OutputPath>bin\x86\Release\</OutputPath> | ||||
|  |  | |||
|  | @ -95,15 +95,32 @@ namespace AideDeJeu.Pdf | |||
|             //PdfStamper stamper = null; | ||||
|             //stamper = new PdfStamper(reader, stream); | ||||
| 
 | ||||
|             try | ||||
|             { | ||||
|                 foreach (var md in mds) | ||||
|                 { | ||||
|                     var expandedMd = await ExpandMarkdownAsync(md); | ||||
|                     var parsed = Markdig.Markdown.Parse(expandedMd, pipeline); | ||||
|                     Render(parsed.AsEnumerable(), document, writer); | ||||
|                 } | ||||
|             } | ||||
|             catch(Exception ex) | ||||
|             { | ||||
|                 Debug.WriteLine(ex); | ||||
|             } | ||||
|             finally | ||||
|             { | ||||
|                 try | ||||
|                 {  | ||||
|                     document?.Close(); | ||||
|                 } | ||||
|                 catch | ||||
|                 { | ||||
| 
 | ||||
|             document.Close(); | ||||
|                 } | ||||
|                 writer.Close(); | ||||
|             } | ||||
| 
 | ||||
|             //stamper.Close(); | ||||
|             //reader.Close(); | ||||
|         } | ||||
|  | @ -243,7 +260,6 @@ namespace AideDeJeu.Pdf | |||
|             //} | ||||
|             var phrases = Render(blocks); | ||||
| 
 | ||||
| 
 | ||||
|             ColumnText ct = new ColumnText(writer.DirectContent); | ||||
| 
 | ||||
|             int column = 0; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez