diff --git a/docker/android/Dockerfile b/docker/android/Dockerfile
index ba14d23..f619e72 100644
--- a/docker/android/Dockerfile
+++ b/docker/android/Dockerfile
@@ -54,7 +54,7 @@ WORKDIR /build
RUN gclient config --unmanaged https://pdfium.googlesource.com/pdfium.git
RUN gclient sync
WORKDIR /build/pdfium
-RUN git checkout affa0ec49277441f4f42efcf8d0894d82e2d4604
+RUN git checkout 31722577db9dc12a249ca6cdf2ff34e51a998360
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN ln -s /usr/bin/pip3 /usr/bin/pip
diff --git a/docker/wasm/Dockerfile b/docker/wasm/Dockerfile
index 9a30ea3..01518b4 100644
--- a/docker/wasm/Dockerfile
+++ b/docker/wasm/Dockerfile
@@ -33,7 +33,7 @@ WORKDIR /build
RUN gclient config --unmanaged https://pdfium.googlesource.com/pdfium.git
RUN gclient sync
WORKDIR /build/pdfium
-RUN git checkout c2ff7477dae94b94de39d11b7bde23169ea8a306
+RUN git checkout 31722577db9dc12a249ca6cdf2ff34e51a998360
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN ln -s /usr/bin/pip3 /usr/bin/pip
diff --git a/docs/BUILD_ANDROID.md b/docs/BUILD_ANDROID.md
index 5c302d9..6bb35f1 100644
--- a/docs/BUILD_ANDROID.md
+++ b/docs/BUILD_ANDROID.md
@@ -2,15 +2,15 @@
1. Execute all **general** steps
-2. PDFium android dependencies
-```./build/android/pdfium/build/install-build-deps-android.sh```
-
-3. Get PDFium:
+2. Get PDFium:
```python3 make.py run build-pdfium-android```
-4. Patch:
+3. Patch:
```python3 make.py run patch-android```
+4. PDFium Android dependencies
+```./build/android/pdfium/build/install-build-deps-android.sh```
+
5. Compile:
```python3 make.py run build-android```
diff --git a/docs/BUILD_WASM.md b/docs/BUILD_WASM.md
index 59bf77a..9e0f942 100644
--- a/docs/BUILD_WASM.md
+++ b/docs/BUILD_WASM.md
@@ -2,18 +2,18 @@
1. Execute all **general** steps
-2. PDFium linux dependencies
-```./build/linux/pdfium/build/install-build-deps.sh```
-
-3. Get Emscripten SDK:
+2. Get Emscripten SDK:
```python3 make.py run build-emsdk```
-4. Get PDFium:
+3. Get PDFium:
```python3 make.py run build-pdfium-wasm```
-5. Patch:
+4. Patch:
```python3 make.py run patch-wasm```
+5. PDFium Linux dependencies
+```./build/linux/pdfium/build/install-build-deps.sh```
+
6. Compile:
```python3 make.py run build-wasm```
diff --git a/extras/wasm/template/index.html b/extras/wasm/template/index.html
index 8f23683..1b3cd0c 100644
--- a/extras/wasm/template/index.html
+++ b/extras/wasm/template/index.html
@@ -14,7 +14,7 @@
-
+