Skip to content

Commit

Permalink
add screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgirard committed Jun 29, 2024
1 parent ee97740 commit c9118bd
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 2 deletions.
Binary file added android_chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android_firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/android_chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/android_firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion docs/native.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,25 @@ <h2 class="anchored" data-anchor-id="embedding-resources">Embedding Resources</h
</section>
<section id="supporting-mobile-browsers" class="level2">
<h2 class="anchored" data-anchor-id="supporting-mobile-browsers">Supporting Mobile Browsers</h2>
<p>Unfortunately, very few mobile browsers support the rendering of PDF objects and those that do (e.g., Safari on iOS) can often render the object in strange ways (e.g,. stretching and distorting its appearance).</p>
<p>Unfortunately, not all mobile browsers support the rendering of PDF objects and those that do (e.g., Safari on iOS) sometimes render the object in strange ways (e.g,. stretching and distorting its appearance).</p>
<table class="caption-top table">
<colgroup>
<col style="width: 48%">
<col style="width: 51%">
</colgroup>
<thead>
<tr class="header">
<th style="text-align: center;">Chrome on Android</th>
<th style="text-align: center;">Firefox on Android</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: center;"><img src="android_chrome.png" class="img-fluid" width="200"></td>
<td style="text-align: center;"><img src="android_firefox.png" class="img-fluid" width="200"></td>
</tr>
</tbody>
</table>
</section>

</main>
Expand Down
8 changes: 7 additions & 1 deletion native.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ You can customize the size of the embedded object using brace notation:

![](dummy.pdf){width=60% height=400}


## CSS usage

Or, for more control, you can assign a CSS id and/or classes:
Expand Down Expand Up @@ -59,6 +60,7 @@ Or, for more control, you can assign a CSS id and/or classes:

![](dummy.pdf){#myid .myclass}


## Embedding Resources

It is important to note that, by default, the PDF file is kept separate from the HTML document file and must be transferred alongside it, i.e., the PDF displays in the HTML file but the PDF file is still needed. Alternatively, you can create a (larger) standalone HTML document by adding `embed-resources: true` to your YAML header and then the PDF file will be embedded into the HTML document automatically.
Expand All @@ -72,7 +74,11 @@ embed-resources: true
![](dummy.pdf)
````


## Supporting Mobile Browsers

Unfortunately, very few mobile browsers support the rendering of PDF objects and those that do (e.g., Safari on iOS) can often render the object in strange ways (e.g,. stretching and distorting its appearance).
Unfortunately, not all mobile browsers support the rendering of PDF objects and those that do (e.g., Safari on iOS) sometimes render the object in strange ways (e.g,. stretching and distorting its appearance).

| Chrome on Android | Firefox on Android |
| :---------------: | :----------------: |
| ![](android_chrome.png){width=200} | ![](android_firefox.png){width=200} |

0 comments on commit c9118bd

Please # to comment.